1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 06:38:30 -04:00

cringey Access-Control-Allow-Origin: * header to fix utteranc.es CORS stuff

This commit is contained in:
Jake Jarvis 2020-04-26 11:24:42 -04:00
parent c986676379
commit 847c5b2b48
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39

View File

@ -40,6 +40,16 @@
# The most important headers and redirects are specified in the _headers and
# _redirects files generated by Hugo. These are additional custom rules.
# Universal headers
[[headers]]
for = "/*"
[headers.values]
# Needed to fix utteranc.es + CORS issues.
# Cringey but not a huge deal for this site.
Access-Control-Allow-Origin = "*"
# 🐄🐄🐄
X-Got-Milk = "2%"
# PGP file: open in browser, download correctly
[[headers]]
for = "/jarvis.asc"
@ -55,12 +65,6 @@
[headers.values]
Content-Type = "text/plain; charset=UTF-8"
# 🐄
[[headers]]
for = "/*"
[headers.values]
X-Got-Milk = "2%"
# Redirect Netlify and www subdomains to primary domain:
[[redirects]]
from = "https://jakejarvis.netlify.com/*"