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

about LOCALFILE / VUE / CORS #1571

Open
aylitat opened this issue Jan 8, 2025 · 1 comment
Open

about LOCALFILE / VUE / CORS #1571

aylitat opened this issue Jan 8, 2025 · 1 comment

Comments

@aylitat
Copy link

aylitat commented Jan 8, 2025

I want know if there are some way to solve this quetion:
I use vue or react to develop a website, and it cant be use by :
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec

SO I tried some way to solve MIME but failed,
and then I try to set the js files on cdn but it CORS...

I can use pywebview well by origin htmls , but I want to try vue or react(not good at it),so is there some ways?

@godcop
Copy link
Contributor

godcop commented Jan 8, 2025

There is no problem using vue. I am now using vue3+vite to develop gui

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

2 participants