From 6e91d32813ea50cb744686d678a822106373f89b Mon Sep 17 00:00:00 2001 From: zwbetz-gh Date: Tue, 24 Nov 2020 21:09:58 -0600 Subject: [PATCH] set Access-Control-Allow-Origin in netlify config --- netlify.toml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/netlify.toml b/netlify.toml index d8fd30c..abeb035 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,8 +1,13 @@ [build] publish = "exampleSite/public" - command = "cd exampleSite && hugo --gc --themesDir ../.." + command = "cd exampleSite && hugo --themesDir ../.." [build.environment] HUGO_VERSION = "0.72.0" HUGO_THEME = "repo" - HUGO_BASEURL = "https://cupper-hugo-theme.netlify.com/" \ No newline at end of file + HUGO_BASEURL = "https://cupper-hugo-theme.netlify.com" + +[[headers]] + for = "/*" + [headers.values] + Access-Control-Allow-Origin = "*"