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

Google web fonts not working in Firefox. Getting DOMException: CSSStyleSheet.cssRules error. #16

Closed
Dineshs91 opened this issue Mar 27, 2023 · 1 comment

Comments

@Dineshs91
Copy link

Steps To Reproduce

  1. Open a page with modern-screenshot in Firefox.
  2. Use a Google web font in the container.
  3. Generate image of the container (Containing the Google web font).

The following error shows up

Error while reading CSS rules from [https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@…;800&family=Slabo+27px:wght@300;400;500;700;800&display=swap](https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;700;800&family=Inter:wght@300;400;500;700;800&family=Lato:wght@300;400;500;700;800&family=Montserrat:wght@300;400;500;700;800&family=Open+Sans:wght@300;400;500;700;800&family=Poppins:wght@300;400;500;700;800&family=Prompt:wght@300;400;500;700;800&family=Public+Sans:wght@300;400;500;700;800&family=Raleway:wght@300;400;500;700;800&family=Roboto:wght@300;400;500;700;800&family=Slabo+27px:wght@300;400;500;700;800&display=swap) DOMException: CSSStyleSheet.cssRules getter: Not allowed to access cross-origin stylesheet
Error Message & Stack Trace

error

Your Environment

  • modern-screenshot: 4.4.9
  • Browser: Firefox 111.0.1
@qq15725
Copy link
Owner

qq15725 commented Apr 14, 2023

Since Firefox CORS policy is currently unavailable, I'll close the issue for now

@qq15725 qq15725 closed this as completed Apr 14, 2023
@qq15725 qq15725 added the CORS label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants