Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in web-worker again, fix chrome in -head builds #6563

Merged
merged 2 commits into from
Aug 3, 2022

Conversation

richard-cox
Copy link
Member

The root issue was caused by the worker being served from our CDN on a different domain from that of the dashboard. This is not an issue when running dev locally or when the build is not -head (as the worker and dashboard would come from the same domain).

This PR first reverts (first commit) the revert of #6553, thus adding back in the changes from #6421. It then fixes the root issue (second commit) by inline bundling the workers.

I've tested this by pushing to my rancher/dashboard richard-cox-dev branch.

…t-6421"

This reverts commit c86abfa, reversing
changes made to 57f9a37.
Inline worker bits to avoid CORS issues in chrome when dashboard is `-head`
@richard-cox richard-cox added this to the v2.6.7 milestone Aug 1, 2022
@richard-cox richard-cox self-assigned this Aug 1, 2022
Copy link
Member

@mantis-toboggan-md mantis-toboggan-md left a comment

Choose a reason for hiding this comment

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

LGTM - I tested this by pointing my ui-dashboard-index setting at richard-cox-dev instead of latest, as well as running the dash locally. In both cases the dashboard seems to work fine with no console errors in chrome or firefox.

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.

3 participants