10 lines
989 B
ApacheConf
10 lines
989 B
ApacheConf
# Editor page (Sveltia CMS). The site-wide policy in the root .htaccess is right for the website
|
|
# but too strict for the editor: it must talk to Gitea and load its own fonts.
|
|
# If Gitea runs under another hostname, replace git.alba-zochling.hu here and in config.yml.
|
|
<IfModule mod_headers.c>
|
|
Header set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval' blob:; style-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; font-src 'self' data: https://cdn.jsdelivr.net; img-src 'self' data: blob: https:; connect-src 'self' blob: data: https://git.alba-zochling.hu https://unpkg.com; worker-src 'self' blob:; frame-src 'self' https://git.alba-zochling.hu; frame-ancestors 'self'; base-uri 'self'; form-action 'self' https://git.alba-zochling.hu"
|
|
Header set Cache-Control "no-store"
|
|
</IfModule>
|
|
# Optional: editor reachable from the office and VPN only. Add your ranges, for example:
|
|
# Require ip 192.168.10.0/24 10.8.0.0/24
|