STATIC_URL_PREFIX configuration error #7242

Closed
opened 2025-11-02 07:20:39 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @blakejia on GitHub (Apr 24, 2021).

  • Gitea version (or commit ref): 1.14.1
  • Git version: 2.30.2
  • Operating system: docker
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

When I use this field STATIC_URL_PREFIX in app.ini, the following log appears in the browser.

construct 'SharedWorker': Script at '[STATIC_URL_PREFIX]/js/eventsource.sharedworker.js' cannot be accessed from origin '[ROOT_URL]'.

Screenshots

image

Originally created by @blakejia on GitHub (Apr 24, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.14.1 - Git version: 2.30.2 - Operating system: docker <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description <!-- If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services. --> When I use this field STATIC_URL_PREFIX in app.ini, the following log appears in the browser. ``` construct 'SharedWorker': Script at '[STATIC_URL_PREFIX]/js/eventsource.sharedworker.js' cannot be accessed from origin '[ROOT_URL]'. ``` ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** --> ![image](https://user-images.githubusercontent.com/9416560/115962389-b9035400-a54d-11eb-9f82-15582360805b.png)
GiteaMirror added the type/bug label 2025-11-02 07:20:39 -06:00
Author
Owner

@noerw commented on GitHub (May 14, 2021):

This should be fixed by #15834

@noerw commented on GitHub (May 14, 2021): This should be fixed by #15834
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7242