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

adding the Access-Control-Allow-Origin header to assets #2818

Merged

Conversation

daixiwen
Copy link
Contributor

This fixes the issue #2817

I've just added the Access-Control-Allow-Origin header to all assets returned by dioxus, the same way it is done for the index request.

This removes the problem with Webview2 blocking some local assets due to CORS policy violation.

@jkelleyrtp jkelleyrtp merged commit a2180b9 into DioxusLabs:main Aug 12, 2024
15 checks passed
@jkelleyrtp
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants