Embedded frame redirects 307 https://github.com/orgs/giscus/discussions/1298 for new script tag from giscus.app
niccokunzmann opened this issue · comments
I copied the script from the giscus.app website.
When I embed the script, I can see this redirect.
307
location: https://github.com/orgs/giscus/discussions/1298
So, no comments appear but the discussion claims that I use the giscus repository. I wonder why because I do not use it.
Resulting script:
<script src="https://giscus.app/client.js"
data-repo="niccokunzmann/open-web-calendar"
data-repo-id="MDEwOlJlcG9zaXRvcnkxNzA4ODYyNzY="
data-category="General"
data-category-id="DIC_kwDOCi-EhM4CX3Pe"
data-mapping="og:title"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="top"
data-theme="noborder_light"
data-lang="en"
crossorigin="anonymous"
async>
</script>
Context: #1348
If you have a look at the commit above, you can see that I removed the origins value.
It seems that this value was causing the redirect.
It works now:
So, redirecting when the origins value is the problem, is misleading. Would it be possible to display a page saying:
This URL is forbidden to comment on the repository niccokunzmann/open-web-calendar because the giscus.json file does not contain "..." in the 'origins' list.
I think that text would solve the issue for me!