-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
CORS Error was happened in index.html #4297
Comments
Thanks for reporting. We switched from jsdelivr (and unpkg) to our own CDN because we found the performance and latency of those free services to be highly unreliable. I've also double and triple checked all the CORS configuration on the S3 bucket and CloudFront setup and could not find any issues, so I'm very confused why this issue keeps reoccurring. Could you do me a favor and open the browser console when visiting the web page you are attempting and then run:
and report back what the response looks like? Could you also try clearing your browser caches just in case. |
@philippjfr Thank you for your quick reply. I tried it on Edge and Chrome, but I get a CORS Error as well when I type the command. When this command below, no error occurred.
Thank you. |
Hi, We tested connecting to the .js files by curl command on client pc.
**Result**
This command also works on client pc.
**Result**
|
@aya-miyazaki I just found a subtle misconfiguration in our CloudFront setup (specifically this SO post describes the problem: https://serverfault.com/questions/619699/setting-access-control-allow-origin-on-cloudfront). I've invalidated the CDN caches which should allow this to work correctly now. Could you try again? |
@philippjfr Thank you for your reserch! |
Yay 🥳 Really appreciate your detailed write ups and following up so responsively. |
Related comment:
ALL software version info
Description of expected behavior and the observed behavior
Our panel application is served on a host PC and users access the page from a client PC with a browser.
It appears that some users are experiencing CORS Errors in their connection to fast-components.js and index.js and cannot access the index page created based on
panel/_templates/index.html
.This situation is almost identical to this comment.(#4080 (comment)).
The page show just white page when this error happen.
When this line as the below was reverted back to before the change, this error went away.
panel/_templates/index.html
The line of 28 and 29Before changed (This changed from #3980 ):
After changed (This code from #3870 ):
Since I do not know why the server was changed, I am unable to offer any suggested changes to the code.
This code fixing have to satisfy both issue #3870 and #3970.
Complete, minimal, self-contained example code that reproduces the issue
Then, access the server with browser, this error may happen.
Some people experience this problem, others do not.
From our research, it does not appear that the cause of this occurrence is due to the IP address from which you are connecting, the VPN, or your browser.
Stack traceback and/or browser JavaScript console output
Same as #4080 (comment)
The text was updated successfully, but these errors were encountered: