diff options
author | zwbetz-gh <zwbetz@gmail.com> | 2020-11-25 06:09:58 +0300 |
---|---|---|
committer | zwbetz-gh <zwbetz@gmail.com> | 2020-11-25 06:09:58 +0300 |
commit | 6e91d32813ea50cb744686d678a822106373f89b (patch) | |
tree | d0c7641216f659a0b9c80861a6b72fd76399af49 | |
parent | 2c39eba5a60847e0c7ad14758223f042e0702349 (diff) |
set Access-Control-Allow-Origin in netlify config
-rw-r--r-- | netlify.toml | 9 |
1 files 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 = "*" |