Skip to content

Use relative paths for dev apps assets to prevent CORS errors#15615

Open
DanielCliftonGuardian wants to merge 1 commit intomainfrom
rel-path-app-assets
Open

Use relative paths for dev apps assets to prevent CORS errors#15615
DanielCliftonGuardian wants to merge 1 commit intomainfrom
rel-path-app-assets

Conversation

@DanielCliftonGuardian
Copy link
Copy Markdown
Contributor

What does this change?

Previously, using a hardcoded absolute URL for development assets in apps emulators (http://localhost:3030/) was causing Cross-Origin Resource Sharing (CORS) errors.

By switching to a relative path (/), the browser will request assets from the same origin that served the page, eliminating the CORS errors and making the local development environment more robust.

@DanielCliftonGuardian DanielCliftonGuardian requested a review from a team as a code owner March 30, 2026 11:33
@github-actions
Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@DanielCliftonGuardian DanielCliftonGuardian added the fix Departmental tracking: fix label Mar 30, 2026
@DanielCliftonGuardian DanielCliftonGuardian self-assigned this Mar 30, 2026
@DanielCliftonGuardian DanielCliftonGuardian added this to the Health milestone Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Departmental tracking: fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant