Title: CORS is not permitted between multiple subdomain workspace apps · Issue #5706 · coder/coder · GitHub
Open Graph Title: CORS is not permitted between multiple subdomain workspace apps · Issue #5706 · coder/coder
X Title: CORS is not permitted between multiple subdomain workspace apps · Issue #5706 · coder/coder
Description: I'm using coder with caddy to dev my backend project but when using forwarded port api url with XMLHttpRequest (Vue axios) it occurs error Access to XMLHttpRequest at 'https://8001--dev--xxx--xxx.coder.xxx.com/admin/report?start=2023-01-...
Open Graph Description: I'm using coder with caddy to dev my backend project but when using forwarded port api url with XMLHttpRequest (Vue axios) it occurs error Access to XMLHttpRequest at 'https://8001--dev--xxx--xxx.c...
X Description: I'm using coder with caddy to dev my backend project but when using forwarded port api url with XMLHttpRequest (Vue axios) it occurs error Access to XMLHttpRequest at 'https://8001--dev--xx...
Opengraph URL: https://github.com/coder/coder/issues/5706
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CORS is not permitted between multiple subdomain workspace apps ","articleBody":"I'm using coder with caddy to dev my backend project but when using forwarded port api url with XMLHttpRequest (Vue axios) it occurs error\r\n\r\n`Access to XMLHttpRequest at 'https://8001--dev--xxx--xxx.coder.xxx.com/admin/report?start=2023-01-13&end=2023-01-13' from origin 'https://3000--dev--xxx--xxx.coder.xxx.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.`\r\n\r\nI saw in chrome dev tools when frontend trying to get preflight request (options request) to that path, it returned http code 307 with redirection to **\"https://coder.xxx.com/api/v2/applications/auth-redirect?redirect_uri=https%3A%2F%2F8001--xxx--xxx--xxx.coder.xxx.com%2Fadmin%2Freport%3Fstart%3D2023-01-13%26end%3D2023-01-13\"**\r\n\r\nWhich CORS policy doesn't allow. What should I do?","author":{"url":"https://github.com/palmmymumu","@type":"Person","name":"palmmymumu"},"datePublished":"2023-01-13T04:28:59Z","url":"https://github.com/coder/coder/issues/5706"}
| 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:5334a69f-cf39-511e-45c5-e1a51e259a4d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE5C:1087D4:1B8A636:24C0A07:6B016382 |
| html-safe-nonce | e25d60fc70237334e5b27cf0a8bf3c270d50662d11582b54c43a81cc06775698 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTVDOjEwODdENDoxQjhBNjM2OjI0QzBBMDc6NkIwMTYzODIiLCJ2aXNpdG9yX2lkIjoiMTQ4NDE2Mjg0MDQwMjE1ODQ2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dc6b9d167774ce16bcd757e9828993fe63157930380a330e139877189e45a18d |
| hovercard-subject-tag | issue:1531692789 |
| 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/coder/coder/5706/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a33c77f1009f265c032baf26a1b63d6fc6c17a8b8409b5fb3ff27d68c9ef3740/coder/coder/issues/5706 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a33c77f1009f265c032baf26a1b63d6fc6c17a8b8409b5fb3ff27d68c9ef3740/coder/coder/issues/5706 |
| og:image:alt | I'm using coder with caddy to dev my backend project but when using forwarded port api url with XMLHttpRequest (Vue axios) it occurs error Access to XMLHttpRequest at 'https://8001--dev--xxx--xxx.c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | palmmymumu |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width