Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross domain access to CDN resources #1

Open
buding-cat opened this issue Oct 10, 2024 · 1 comment
Open

Cross domain access to CDN resources #1

buding-cat opened this issue Oct 10, 2024 · 1 comment

Comments

@buding-cat
Copy link

Cross domain access to CDN resources
Overview your URLs and CORS policies or use DarkReader.setFetchMethod(fetch: (url) => Promise<Response>)). See if using DarkReader.setFetchMethod(window.fetch) before

@buding-cat
Copy link
Author

Adding this code should be able to solve the problem, as there is an error when switching to dark themes

if (typeof DarkReader !== 'undefined') {
  DarkReader.setFetchMethod(window.fetch);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant