-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
Move to stricter CSP #11028
Move to stricter CSP #11028
Conversation
efcec80
to
d839df2
Compare
Next one:
|
ad7e58b
to
7b986d3
Compare
7b986d3
to
c9c8c60
Compare
So I think this is good to get in. Other stuff we should fix once we run into it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do this
@@ -49,7 +49,7 @@ class ContentSecurityPolicy extends EmptyContentSecurityPolicy { | |||
* TODO: Disallow per default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
https://github.com/search?q=%22OC.AddScript%22&type=Code have fun 🙈 |
I only have found richdocuments and files_texteditor. 🤷♂️ |
I've pushed my fix that replaces the eval code with |
@ChristophWurst richdocuments still works with this! yay! |
dd1d0ce
to
ea0d692
Compare
.htaccess
Outdated
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE #### | ||
|
||
ErrorDocument 403 / | ||
ErrorDocument 404 / |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and didn't explode 👍
ea0d692
to
ca3d964
Compare
JS unit fails.
|
f738ae3
to
385cfff
Compare
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
No more weird eval to construct a plural function. We just use the plural function from symfony. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
385cfff
to
056a74e
Compare
@Arvidas mind to open a new ticket and link here? |
JS unsafe-eval was removed a long time ago in #11028
Do not allow unsafe eval by default.
🚧
Last merge for https://github.com/orgs/nextcloud/projects/18
This will be rebased several times to validate CSP behavior
TODO:
This will kill of OC.AddScriptconverted by mr @ChristophWurst