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

Site Tour: Fix CORS error in accessing tour stylesheet #1694

Merged
merged 4 commits into from Sep 25, 2023
Merged

Conversation

trymebytes
Copy link
Contributor

Problem

The error Uncaught DOMException: Failed to read the ‘cssRules’ property from ‘CSSStyleSheet' is thrown when the tour stylesheet is being accessed.

Solution

Instead of adding these styles to the first stylesheet which happens to be on another domain, we have decided to create a style tag and add all the css rules in it.

@trymebytes trymebytes changed the title Fix CORS error in accessing tour stylesheet Site Tour: Fix CORS error in accessing tour stylesheet Sep 20, 2023
assets/js/tour.js Outdated Show resolved Hide resolved
assets/js/tour.js Outdated Show resolved Hide resolved
Copy link
Member

@akirk akirk left a comment

Choose a reason for hiding this comment

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

Great!

@trymebytes trymebytes merged commit 6a53718 into develop Sep 25, 2023
6 checks passed
@trymebytes trymebytes deleted the tour-fix branch September 25, 2023 15:50
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.

None yet

2 participants