valisoftworks / react-apply-darkmode

Drop-in dark mode for React apps.
https://www.valisoft.net/blog/2020-10-22
MIT License
0 stars 0 forks source link

Error: Embedded Dark Reader cannot access a cross-origin resource #3

Open AmmarMohamadIsmaeel opened 3 years ago

AmmarMohamadIsmaeel commented 3 years ago

Everything is working fine, except for this error in console

index.js:1 Error: Embedded Dark Reader cannot access a cross-origin resource https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png Overview your URLs and CORS policies or use DarkReader.setFetchMethod(fetch: (url) => Promise<Response>)). See if using DarkReader.setFetchMethod(window.fetch) before DarkReader.enable() works.

VictorLi08 commented 3 years ago

Hmm, I haven't seen this error before. What framework are you using? How are you integrating this component into your app?