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

cssRules from google CSS breaking #161

Open
1 task done
mharris-np opened this issue Jan 28, 2024 · 1 comment
Open
1 task done

cssRules from google CSS breaking #161

mharris-np opened this issue Jan 28, 2024 · 1 comment

Comments

@mharris-np
Copy link

Use case: description, code

Our app has some google libraries used for sign-in and a few other integrations. When attempting to use this module, we receive the following error in the console

accounts.google.com/gsi/style SecurityError: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules

jsfiddle

Expected behavior

Either allow ignoreCss rules or explicitly skip google css rules that can't be accessed

Actual behavior (stack traces, console logs etc)

Library version

Browsers

  • Chrome 49+
  • [] Firefox 45+
@2b-dev
Copy link

2b-dev commented Mar 28, 2024

add crossorigin='anonymous'
example :

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

No branches or pull requests

2 participants