Just a couple more.
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
e17827c517
commit
6a86b44aab
|
@ -33,11 +33,16 @@ server {
|
|||
add_header Cross-Origin-Resource-Policy "same-origin" always;
|
||||
add_header Cross-Origin-Opener-Policy "same-origin" always;
|
||||
|
||||
# Apply CORP header for the apple-touch-icon to allow cross-origin access
|
||||
location /icons/apple-touch-icon.png {
|
||||
add_header Cross-Origin-Resource-Policy "cross-origin";
|
||||
}
|
||||
|
||||
# Use sub_filter to inject the nonce into inline <script> and <style> tags automatically
|
||||
sub_filter '<script>' '<script nonce="$nonce">';
|
||||
sub_filter '<style>' '<style nonce="$nonce">';
|
||||
sub_filter_once off; # Apply the replacement to all instances of <script> and <style> tags
|
||||
sub_filter_types text/html; # Only apply the sub_filter to HTML content
|
||||
sub_filter_once off;
|
||||
sub_filter_types text/html;
|
||||
|
||||
# Redirect demo.hedgedoc.org resources to hedgedoc.nixc.us
|
||||
sub_filter "https://demo.hedgedoc.org" "https://hedgedoc.nixc.us";
|
||||
|
|
Loading…
Reference in New Issue