Skip to content

Commit

Permalink
Update .htaccess
Browse files Browse the repository at this point in the history
Format Content-Security-Policy header directives h5bp#359
  • Loading branch information
dcog989 authored Mar 12, 2024
1 parent c616cf5 commit 46692b7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dist/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,15 @@ AddDefaultCharset utf-8
# https://content-security-policy.com/

# <IfModule mod_headers.c>
# # (1) (2) (3) (4) (5) (6) (7)
# Header always set Content-Security-Policy "default-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'none'; object-src 'none'; upgrade-insecure-requests" "expr=%{CONTENT_TYPE} =~ m#text\/(html|javascript)|application\/pdf|xml#i"
# Header always set Content-Security-Policy "
# (1) (2) (3) (4) (5) (6) (7)
# default-src 'self';
# base-uri 'none';
# form-action 'self';
# frame-ancestors 'none';
# object-src 'none';
# upgrade-insecure-requests;"
# "expr=%{CONTENT_TYPE} =~ m#text\/(html|javascript)|application\/pdf|xml#i"
# </IfModule>

# ----------------------------------------------------------------------
Expand Down

0 comments on commit 46692b7

Please sign in to comment.