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

Failed in opening demo index page due to Chrome CORS policy. #241

Closed
StephenHuge opened this issue Jul 26, 2022 · 2 comments
Closed

Failed in opening demo index page due to Chrome CORS policy. #241

StephenHuge opened this issue Jul 26, 2022 · 2 comments

Comments

@StephenHuge
Copy link
Contributor

Env

macOS BigSur 11.6.7
Chrome 103.0.5060.134 (x86_64)

Problem

After pulling the project to local, I failed at using Chrome to open demo page, errors can be seen in the image below.
image

@santhoshtr
Copy link
Member

I see that you opened the HTML file using browser. This behaviour is expected in that case. Would it be possible to access it using a webserver? From the jquery.i18n , running python -m http.server would start a static webserver and you can navigate to the demo and it would work then. (There are many other ways to serve files using webserver -this is just an example)

@StephenHuge
Copy link
Contributor Author

StephenHuge commented Jul 26, 2022

I see that you opened the HTML file using browser. This behaviour is expected in that case. Would it be possible to access it using a webserver? From the jquery.i18n , running python -m http.server would start a static webserver and you can navigate to the demo and it would work then. (There are many other ways to serve files using webserver -this is just an example)

Yeah, I have found some solution just like what you said. I submitted a pull request to fulfill this case making this quick-start more user-friendly, can it be merged? Fix chrome cors policy #242

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

No branches or pull requests

2 participants