Skip to content

Commit

Permalink
Add Content-Security-Policy header to nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Tymofeiev committed Aug 12, 2024
1 parent 5be75c8 commit bf0cc89
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit bf0cc89

Please sign in to comment.