possible netlify cors header fix youtube

This commit is contained in:
bflatastic committed 2024-11-28 23:14:28 +07:00
1 parent 510a9f03a3
commit 15bcdb0ca1
2 files changed
+8 -1

No files matched your search

@@ -1,6 +1,6 @@
<div {% if class %}class="{{class}}" {% endif %}>
<iframe
src="https://www.youtube.com/embed/{{id}}{% if autoplay %}?autoplay=1{% endif %}&origin=https://storyteller.ai"
src="https://www.youtube.com/embed/{{id}}{% if autoplay %}?autoplay=1{% endif %}"
webkitallowfullscreen
mozallowfullscreen
allowfullscreen
@@ -33,3 +33,10 @@ from = "/asdf"
to = "https://storyteller.ai/about"
status = 301
force = true
[[headers]]
for = "/*"
[headers.values]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Resource-Policy = "cross-origin"