Skip to content

Fix CORS on navigation#65

Merged
dajinchu merged 1 commit intomasterfrom
dc/fix-cors
Jan 30, 2026
Merged

Fix CORS on navigation#65
dajinchu merged 1 commit intomasterfrom
dc/fix-cors

Conversation

@dajinchu
Copy link
Collaborator

@dajinchu dajinchu commented Jan 29, 2026

fix cors error on navigation causing error page. now we reload instead

@dajinchu dajinchu changed the title dc/fix cors Fix CORS on navigation Jan 30, 2026

if (!resp) {
// hard reload. can happen on cors errors when redirected to external page
window.location.href = pageContext.urlParsed.href;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this will go through redirects again. it would be nice to go straight to the redirect location but it is not possible to get the location

@dajinchu dajinchu merged commit 12eaf56 into master Jan 30, 2026
1 check passed
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