mirror of
https://github.com/elder-plinius/LEAKHUB.git
synced 2026-02-12 16:52:53 +00:00
30 lines
1.0 KiB
TOML
30 lines
1.0 KiB
TOML
[build]
|
|
publish = "."
|
|
functions = "api"
|
|
|
|
[build.environment]
|
|
NODE_VERSION = "18"
|
|
|
|
[[redirects]]
|
|
from = "/api/*"
|
|
to = "/.netlify/functions/serverless"
|
|
status = 200
|
|
|
|
[[headers]]
|
|
for = "/*"
|
|
[headers.values]
|
|
X-XSS-Protection = "1; mode=block"
|
|
X-Content-Type-Options = "nosniff"
|
|
X-Frame-Options = "DENY"
|
|
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"
|
|
Referrer-Policy = "strict-origin-when-cross-origin"
|
|
Permissions-Policy = "geolocation=(), microphone=(), camera=()"
|
|
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.googletagmanager.com; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self'; connect-src 'self'; frame-ancestors 'none'; base-uri 'self'; form-action 'self'"
|
|
|
|
[[headers]]
|
|
for = "/api/*"
|
|
[headers.values]
|
|
Access-Control-Allow-Origin = "*"
|
|
Access-Control-Allow-Methods = "GET, POST, PUT, DELETE, OPTIONS"
|
|
Access-Control-Allow-Headers = "Content-Type, Authorization"
|