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

Add content-security-policy by default #292

Closed
raffis opened this issue Mar 17, 2020 · 0 comments
Closed

Add content-security-policy by default #292

raffis opened this issue Mar 17, 2020 · 0 comments

Comments

@raffis
Copy link
Contributor

raffis commented Mar 17, 2020

Describe the change

Add a default csp to allow only internal resources but block anything else.

Current situation

There is no csp by default. Deployments required to add these to traffic proxies (ingresses).

Should

nginx add headers:

add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header Content-Security-Policy "default-src 'self' 'unsafe-inline' 'unsafe-eval' data:;";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant