-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
53 lines (39 loc) · 1.82 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
# A redirect rule with all the supported properties
[[redirects]]
from = "/live_chat"
to = "https://www.youtube.com/live_chat"
# The default HTTP status code is 301, but you can define a different one.
status = 200
# By default, redirects won't be applied if there's a file with the same
# path as the one defined in the `from` property. Setting `force` to `true`
# will make the redirect rule take precedence over any existing files.
force = true
# Redirect from /old-path?id=123 to /new-path. Each combination of query
# params needs to be defined in a separate [[redirects]] block.
# More information at https://docs.netlify.com/routing/redirects/redirect-options/#query-parameters
query = {v = ":v"}
# You can also define custom headers within your redirects blocks.
[redirects.headers]
X-Frame-Options = "ALLOW"
# A redirect rule with all the supported properties
[[redirects]]
from = "/yts/*"
to = "https://www.youtube.com/yts/:splat"
# The default HTTP status code is 301, but you can define a different one.
status = 200
# By default, redirects won't be applied if there's a file with the same
# path as the one defined in the `from` property. Setting `force` to `true`
# will make the redirect rule take precedence over any existing files.
force = true
# Redirect from /old-path?id=123 to /new-path. Each combination of query
# params needs to be defined in a separate [[redirects]] block.
# More information at https://docs.netlify.com/routing/redirects/redirect-options/#query-parameters
# You can also define custom headers within your redirects blocks.
[redirects.headers]
X-Frame-Options = "ALLOW"
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"