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

Webui breaks when CDN enabled #2250

Closed
Tyketc opened this issue Jun 17, 2023 · 3 comments
Closed

Webui breaks when CDN enabled #2250

Tyketc opened this issue Jun 17, 2023 · 3 comments
Labels

Comments

@Tyketc
Copy link

Tyketc commented Jun 17, 2023

Steps to reproduce the problem

This bug may relate to PR#2246

  1. Setup an instance under commit fefdc32
  2. Setup CDN with Access-Control-Allow-Origin: *
  3. Restart the instance.
    ...

Expected behaviour

The webui loads successfully.

Actual behaviour

Got a blank screen with following errors in browser console:

Detailed description

Subresource Integrity: The resource 'https://cdn.mastodon.instance/packs/js/locales/glitch/zh-CN-json-d9fbf1fd0d7ee3845963.chunk.js' has an integrity attribute, but the resource requires the request to be CORS enabled to check the integrity, and it is not. The resource has been blocked because the integrity cannot be enforced.
s.e @ bootstrap:149
home.js:10 ChunkLoadError: Loading chunk 650 failed.
(error: https://cdn.mastodon.instance/packs/js/locales/glitch/zh-CN-json-d9fbf1fd0d7ee3845963.chunk.js)
    at s.e (bootstrap:126:18)
    at o (.*\.json$ include: \.json$ preloadOrder: 0 namespace object:393:29)
    at load_locale.ts:27:30
(anonymous) @ home.js:10

Specifications

Mastodon 4.1.2+glitch (commit fefdc3244cc53573e835009c17f9bc658386639e)
Chrome 114.0

@Tyketc Tyketc added the bug label Jun 17, 2023
@ClearlyClaire
Copy link

I can reproduce the issue, and it's caused by mastodon#24906

@ClearlyClaire
Copy link

This should now be fixed!

@Tyketc
Copy link
Author

Tyketc commented Jun 18, 2023

Yes, the front-end now loads successfully. Thanks for the quick fix!

@Tyketc Tyketc closed this as completed Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants