-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
60 lines (48 loc) · 2.23 KB
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# [build]
# functions = "functions"
[template.environment]
WORDPRESS_URL = "WordPress URL without trailing slash. http://example.com"
STRIPE_PUBLISHABLE_KEY = "Stripe Publishable Key"
[build]
command = "npm run generate"
publish = "dist"
[[headers]]
for = "*.js" # js files should be set this way
[headers.values]
Cache-Control = "public, max-age=2592000"
[[headers]]
for = "*.css" # css files too
[headers.values]
Cache-Control = "public, max-age=2592000"
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Headers = "Content-Type"
X-XSS-Protection = "1; mode=block"
Referrer-Policy = "no-referrer"
X-Content-Type-Options = "nosniff"
# Strict-Transport-Security = "max-age=15780000; includeSubDomains; preload"
# Feature-Policy = "geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; speaker 'none'; fullscreen 'none'; payment 'none'"
# Content-Security-Policy = "default-src * 'unsafe-inline' 'unsafe-eval'; script-src * 'unsafe-inline' 'unsafe-eval'; connect-src * 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src *; style-src * 'unsafe-inline'"
[[headers]]
for = "/_nuxt/*"
[headers.values]
Cache-Control = "public, max-age=365000000"
Access-Control-Allow-Origin = "*"
Access-Control-Allow-Headers = "Content-Type"
[[redirects]]
from = "/*"
to = "https://testing.2cubedtest.com/:splat"
status = 200
headers = {Access-Control-Allow-Origin = "*", Access-Control-Allow-Headers = "Content-Type, *", Access-Control-Allow-Methods = "GET, POST", Access-Control-Allow-Credentials= "true"}
[[redirects]]
from = "http://woonuxt.com/*"
to = "https://woonuxt.com/:splat"
status = 301
headers = {Access-Control-Allow-Origin = "*", Access-Control-Allow-Headers = "Content-Type, *", Access-Control-Allow-Methods = "GET, POST", Access-Control-Allow-Credentials= "true"}
[[redirects]]
from = "http://www.woonuxt.com/*"
to = "https://woonuxt.com/:splat"
status = 301
headers = {Access-Control-Allow-Origin = "*", Access-Control-Allow-Headers = "Content-Type, *", Access-Control-Allow-Methods = "GET, POST", Access-Control-Allow-Credentials= "true"}