react-query-firebase icon indicating copy to clipboard operation
react-query-firebase copied to clipboard

Compatibility with firebase/compat/app

Open dlaynes opened this issue 3 years ago • 2 comments

I have stumbled with CORS 'Access-Control-Allow-Origin issues when trying to start a session with the node.js v9 firebase library in Firefox.

However, when using the v9 Firebase compat APIs, they are not supported by react-query-firebase (due to Typescript warnings), so how should I handle this? Thanks.

dlaynes avatar Feb 13 '22 16:02 dlaynes

Would you be able to show some code or sandbox of the issue so I can replicate?

Ehesp avatar Feb 13 '22 17:02 Ehesp

It doesn't happen in an https URL, only on http://localhost

https://codesandbox.io/s/musing-dhawan-0t4pn?file=/src/App.js

If anybody else has this issue, this tutorial may help

https://dev.to/nightbr/local-https-for-react-app-in-nx-workspace-4ef1

dlaynes avatar Feb 13 '22 17:02 dlaynes