Skip to content

Commit

Permalink
Add domain redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyzen committed Jan 29, 2022
1 parent d5d8e94 commit a90cd28
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
[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"
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'"
Expand All @@ -45,4 +45,16 @@
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"}

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woonuxt",
"version": "0.3.25",
"version": "0.3.26",
"private": true,
"scripts": {
"dev": "nuxi dev",
Expand Down

0 comments on commit a90cd28

Please sign in to comment.