How does Firebase handle cross origin issues?
-
10-06-2021 - |
해결책
Let me answer this question in two parts, as there are multiple ways to communicate with the Firebase Servers.
- Firebase JavaScript Client - The Firebase Javascript Client maintains a real-time bidirectional connection to the server. Under the covers, this uses WebSockets whenever possible (which have no limitations with regard to cross-origin connections) and falls back to hidden-iframe-based jsonp long-polling on older browsers (which sidesteps cross-origin issues by only doing requests).
- Firebase REST API - You can also get / set data from Firebase using the REST API, which uses CORS to allow cross-origin requests.
So in summary, it should "just work" and you don't need to do anything special.
제휴하지 않습니다 StackOverflow