-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
CSP errors after I change the s3 alias host #27446
Comments
This looks like the service worker ( |
I've traced it this far, but I don't know how to fix it. |
If you have a CDN in front of e5n.cc itself, you need to clear its cache. Then on the user side, you need to refresh browser cache. The issue should then disappear. |
We've seen this issue (twice) and had a hard time finding out what caused it. We had this when we moved from local storage to an S3-based storage platform, and again when this platform changed domain names. It seems to be this scenario:
We've not found a way for us as Mastodon admins to force these web workers to upgrade (their CSP info), nor for end users to force refresh them. Other than using a private window. Our conclusion is that when we change assets hosts, we need to add the new host at least 1 week before a planned migration to the CSP header so users can 'learn' the value. |
Duplicate in #28842 |
Steps to reproduce the problem
After I changed the s3 alias host, Chrome Console showed these errors.
However, the instance works fine in Firefox and Chrome WITHOUT login. The Android app works fine. Apps like Elk also work fine.
e5n.cc
files.e5n.cc
(Cloudflare R2)e5n.cc.eallion.com
(Tencent COS & CDN)Expected behaviour
Show media
Actual behaviour
CSP errors
Detailed description
No response
Mastodon instance
e5n.cc
Mastodon version
v4.2.1
Browser name and version
Chrome 118.0.5993.71
Operating system
Win11
Technical details
No response
The text was updated successfully, but these errors were encountered: