Title: BUG: "Open in StackBlitz” button broken by CORS · Issue #226 · stackblitz/docs · GitHub
Open Graph Title: BUG: "Open in StackBlitz” button broken by CORS · Issue #226 · stackblitz/docs
X Title: BUG: "Open in StackBlitz” button broken by CORS · Issue #226 · stackblitz/docs
Description: Describe the bug When the "Open in StackBlitz" button is requested with CORS (i.e. ), it isn't loaded. To Reproduce Steps to reproduce the behavior: Run the following HTML
), it isn't loaded. To Reproduce Steps to reproduce the behavior: Run the followi...
X Description: 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...
Opengraph URL: https://github.com/stackblitz/docs/issues/226
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BUG: \"Open in StackBlitz” button broken by CORS","articleBody":"**Describe the bug**\r\nWhen the \"Open in StackBlitz\" button is requested with CORS (i.e. `\u003cimg crossorigin=\"anonymous\" ...>`), it isn't loaded.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Run the following HTML\r\n```html\r\n\u003c!-- Broken badge -->\r\n\u003cimg alt=\"Open in StackBlitz\" \r\n crossorigin=\"anonymous\" \r\n src=\"https://developer.stackblitz.com/img/open_in_stackblitz_small.svg\">\r\n\r\n\u003c!-- Working badge-->\r\n\u003cimg alt=\"Open in StackBlitz\" \r\n src=\"https://developer.stackblitz.com/img/open_in_stackblitz_small.svg\">\r\n```\r\n2. Open the DevTools Console tab\r\n3. See error\r\n\r\n**Expected behavior**\r\nFor the image to load.\r\n\r\n**Screenshots**\r\n\r\n\r\n\r\n**Desktop:**\r\n - OS: Windows\r\n - Browser: Chrome\r\n - Version: 126\r\n\r\n**Additional context**\r\n- [`crossorigin=\"anonymous\"` on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin#anonymous)\r\n- [`Access-Control-Allow-Origin` on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin)\r\n- [MDN's description of this error](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin)\r\n- [badges/shields#3273](https://github.com/badges/shields/issues/3273)","author":{"url":"https://github.com/coder0107git","@type":"Person","name":"coder0107git"},"datePublished":"2024-07-27T22:39:21Z","url":"https://github.com/stackblitz/docs/issues/226"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7c352acd-dc65-1322-5ddc-eee3961a6852 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A352:928E2:A0C0C4:D88030:6B00ECBB |
| html-safe-nonce | 0d5bc99bb346c5e57e7ec000875a36eac9412c8baf4a631314df7b53f4d06283 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzUyOjkyOEUyOkEwQzBDNDpEODgwMzA6NkIwMEVDQkIiLCJ2aXNpdG9yX2lkIjoiNTgwNjE0ODI0MjM1NzkzOTM4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 191ae69d95a4675f7cf2a47c6738b29367517baee4035ac2825b80a454112eae |
| hovercard-subject-tag | issue:2433648015 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stackblitz/docs/226/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f39964adf8688b70623792a0eadad86f1fb1589f8484fcacc92b8202181ab2c3/stackblitz/docs/issues/226 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f39964adf8688b70623792a0eadad86f1fb1589f8484fcacc92b8202181ab2c3/stackblitz/docs/issues/226 |
| og:image:alt | Describe the bug When the "Open in StackBlitz" button is requested with CORS (i.e. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | coder0107git |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/stackblitz/docs git https://github.com/stackblitz/docs.git |
| octolytics-dimension-user_id | 28635252 |
| octolytics-dimension-user_login | stackblitz |
| octolytics-dimension-repository_id | 528586714 |
| octolytics-dimension-repository_nwo | stackblitz/docs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 528586714 |
| octolytics-dimension-repository_network_root_nwo | stackblitz/docs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width