mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 15:16:21 -04:00
cringey Access-Control-Allow-Origin: * header to fix utteranc.es CORS stuff
This commit is contained in:
parent
c986676379
commit
847c5b2b48
16
netlify.toml
16
netlify.toml
@ -40,6 +40,16 @@
|
|||||||
# The most important headers and redirects are specified in the _headers and
|
# The most important headers and redirects are specified in the _headers and
|
||||||
# _redirects files generated by Hugo. These are additional custom rules.
|
# _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
|
# PGP file: open in browser, download correctly
|
||||||
[[headers]]
|
[[headers]]
|
||||||
for = "/jarvis.asc"
|
for = "/jarvis.asc"
|
||||||
@ -55,12 +65,6 @@
|
|||||||
[headers.values]
|
[headers.values]
|
||||||
Content-Type = "text/plain; charset=UTF-8"
|
Content-Type = "text/plain; charset=UTF-8"
|
||||||
|
|
||||||
# 🐄
|
|
||||||
[[headers]]
|
|
||||||
for = "/*"
|
|
||||||
[headers.values]
|
|
||||||
X-Got-Milk = "2%"
|
|
||||||
|
|
||||||
# Redirect Netlify and www subdomains to primary domain:
|
# Redirect Netlify and www subdomains to primary domain:
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "https://jakejarvis.netlify.com/*"
|
from = "https://jakejarvis.netlify.com/*"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user