-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
JavaScript error: EvalError: call to Function() blocked by CSP #23928
Comments
It's likely because of the Vue template compiler which requires |
I think it has been fixed in 1.20 (the latest main dev branch), there is no Welcome to try. |
Do you still have problem in 1.20? (I guess there won't be problem, I had tested the CSP when I did the refactoring) That was a big refactoring, so the changes were not backported to 1.19 |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I confirm it works in 1.20 build from "main" |
@GhaziTriki fantastic! I'll close this ticket now :) |
Description
I am running gitea behind nginx revers proxy. In the UI get the following JS error message that prevents me from doing some actions like switching to SSH.
JavaScript error: EvalError: call to Function() blocked by CSP (https://gitea.mycompany.net/assets/js/index.js?v=1.19.0 @ 19:71859). Open browser console to see more details.
In the console I have 'Content Security Policy: The page’s settings blocked the loading of a resource at eval (“default-src”).'
Screenshots
Gitea Version
1.19.0
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
Ubuntu 20.04 LTS
Browser Version
Firefox 111.0.1 (64-bit)
The text was updated successfully, but these errors were encountered: