You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG: "Open in StackBlitz” button broken by CORS #226
Describe the bug
When the "Open in StackBlitz" button is requested with CORS (i.e. <img crossorigin="anonymous" ...>), it isn't loaded.
To Reproduce
Steps to reproduce the behavior:
Run the following HTML
<!-- Broken badge --><imgalt="Open in StackBlitz"
crossorigin="anonymous"
src="https://developer.stackblitz.com/img/open_in_stackblitz_small.svg"><!-- Working badge--><imgalt="Open in StackBlitz"
src="https://developer.stackblitz.com/img/open_in_stackblitz_small.svg">
Activity
coder0107git commentedon Aug 3, 2024
A potential fix for this would be to add the following to
netlify.toml.[[headers]] for = "/img/*" [headers.values] Cross-Origin-Resource-Policy = "cross-origin" + Access-Control-Allow-Origin = "*"coder0107git commentedon Aug 23, 2024
Would submitting a PR with the suggested changes be helpful?
samdenty commentedon Aug 26, 2024
Sure @coder0107git
coder0107git commentedon Aug 28, 2024
Filed PR (#229)
coder0107git commentedon Sep 4, 2024
@samdenty or @sulco Any chance #229 will be reviewed soon?