From 97405f85f2c84ff1fd2c6bb5721591fa91cf6ea7 Mon Sep 17 00:00:00 2001 From: Scott Kennedy Date: Sun, 3 Oct 2021 23:26:43 +0100 Subject: [PATCH] Modifide Heades --- netlify.toml | 16 +++++++++++----- pages/login.vue | 49 ++++++++++++++++++++++++------------------------- 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/netlify.toml b/netlify.toml index 32e17a6..12e3db9 100644 --- a/netlify.toml +++ b/netlify.toml @@ -14,11 +14,11 @@ [headers.values] Cache-Control = "public, max-age=2592000" -# [[headers]] -# for = "/*" -# [headers.values] -# Access-Control-Allow-Origin = "*" -# Access-Control-Allow-Headers = "Content-Type" +[[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" @@ -26,6 +26,12 @@ # 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 = "/*" diff --git a/pages/login.vue b/pages/login.vue index 26e741a..3fd44f1 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -1,32 +1,31 @@