a2enmod headers
systemctl restart apache2
DirectoryIndex godot.tools.html
<IfModule mod_headers.c>
Header always append X-Frame-Options SAMEORIGIN
Header set Access-Control-Allow-Origin "*"
Header set Cross-Origin-Embedder-Policy require-corp
Header set Cross-Origin-Opener-Policy same-origin
Header set Cross-Origin-Resource-Policy same-origin
</IfModule>
location / {
....
add_header X-Frame-Options SAMEORIGIN;
add_header Access-Control-Allow-Origin "*";
add_header Cross-Origin-Embedder-Policy require-corp;
add_header Cross-Origin-Opener-Policy same-origin;
add_header Cross-Origin-Resource-Policy same-origin;
......
}
Restart nginx: systemctl restart nginx