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

No 'Access-Control-Allow-Origin' header is present on the requested resource. #12252

Open
felixpackard opened this issue Mar 10, 2021 · 1 comment
Assignees
Labels
needs-investigation P2 PSI/LR PageSpeed Insights and Lightrider

Comments

@felixpackard
Copy link

Describe the bug

Lighthouse shows the error "Browser errors were logged to the console".

The description of the error is "Access to XMLHttpRequest at 'https://clientapi.passle.it/CookieControlPlugin/CookieControl' from origin 'https://environment.johnbosley.dev' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

The resource at https://clientapi.passle.it/CookieControlPlugin/CookieControl has the header Access-Control-Allow-Origin: *, and the console error reported is not logged when visiting the URL https://environment.johnbosley.dev in the browser.

This issue doesn't occur when testing using the devtools, but it does occur when using web.dev.

To Reproduce

Steps to reproduce the behavior:

  1. Run web.dev on https://environment.johnbosley.dev/ and view the report.

Expected behavior

The best practices section shouldn't show any errors.

Screenshots

image

image

@robdodson
Copy link
Contributor

Here's a link to the report.
https://lighthouse-dot-webdotdevsite.appspot.com//lh/html?url=https%3A%2F%2Fenvironment.johnbosley.dev%2F

I think this might be a PSI issue. Moving over to the LH repo as they also manage PSI.

@robdodson robdodson transferred this issue from GoogleChrome/web.dev Mar 16, 2021
@connorjclark connorjclark added PSI/LR PageSpeed Insights and Lightrider needs-investigation P2 labels Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-investigation P2 PSI/LR PageSpeed Insights and Lightrider
5 participants