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 header to nginx config #434

Merged
merged 11 commits into from
Aug 13, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ error_page {{ k }} {{ v }};
# prevent the browser from doing MIME-type sniffing
add_header X-Content-Type-Options nosniff;

{% if EDXAPP_LMS_IFRAME_ENABLED %}
# Allow iFrame for the provided hosts
add_header Content-Security-Policy "frame-ancestors 'self' {{ EDXAPP_LMS_FRAME-ANCESTORS }}";
{% endif %}

# Prevent invalid display courseware in IE 10+ with high privacy settings
add_header P3P '{{ NGINX_P3P_MESSAGE }}';

Expand Down
Loading