Skip to content

Conversation

@rzane
Copy link
Contributor

@rzane rzane commented Apr 12, 2025

I was trying to use the Chrome extension on localhost. As I changed splits, they would fail to save and the page would reload. I managed to intercept the error by setting a breakpoint on the beforeunload event.

Screenshot 2025-04-11 at 8 28 00 PM

After doing a little digging, it seems like our CORS allowlist isn't working correctly because the origin is a URI (e.g. http://localhost:3000), not a hostname.

In order to avoid any breaking changes, I didn't change the TESTTRACK_ALLOWED_ORIGINS logic, but it seems like what we actually want is for those to apply to the hostname, rather than the URI.

Copy link
Member

@jmileham jmileham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find! Domain Lgtm platform Lgtm. I don't recall the release mechanics for this but maybe release notes and version bump if that's a thing?

@rzane rzane requested a review from jmileham April 12, 2025 18:43
Copy link
Member

@jmileham jmileham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Domain Lgtm!

@rzane rzane merged commit 077d532 into main Apr 14, 2025
2 checks passed
@rzane rzane deleted the rzane/localhost branch April 14, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants