Skip to content

Conversation

@morgankevinj
Copy link

Add "add_header Content-Security-Policy "default-src 'self'" always;" and remove redundant headers

Add "add_header Content-Security-Policy "default-src 'self'" always;" and remove redundant headers
@skjnldsv
Copy link
Member

Hi,

Our csp settings are managed within nextcloud directly.

remove redundant headers

What do you mean by that?

@morgankevinj
Copy link
Author

morgankevinj commented Nov 23, 2019

Setting frame-ancestors to 'none' should be roughly equivalent to X-Frame-Options: DENY.
script-src limits scripts so it can replace X-XSS-Protection.
When frame-ancestors and script-src are not declared the policy falls back on default-src.
according to https://content-security-policy.com/#source_list

@skjnldsv
Copy link
Member

cc @rullzer

@rullzer
Copy link
Member

rullzer commented Nov 23, 2019

Nope. We set the csp from nextcloud. Because we need to also set the nonce etc.

@kesselb
Copy link
Contributor

kesselb commented Nov 23, 2019

@skjnldsv
Copy link
Member

Closing then :)

@skjnldsv skjnldsv closed this Nov 23, 2019
minecrawler added a commit to minecrawler/documentation that referenced this pull request Sep 29, 2022
minecrawler added a commit to minecrawler/documentation that referenced this pull request Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants