GoogleChrome / GoogleChrome/lighthouse

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

Open
#12,252 1 comment 0 reactions 1 assignee Claimed by @paulirish View on GitHub
needs-investigation P2 PSI/LR
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

**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](https://lighthouse-dot-webdotdevsite.appspot.com//lh/html?url=https%3A%2F%2Fenvironment.johnbosley.dev%2F#best-practices).

**Expected behavior**

The best practices section shouldn't show any errors.

**Screenshots**

![image](https://user-images.githubusercontent.com/10647447/110616343-5a943900-818c-11eb-97a8-c749100fa05a.png)

![image](https://user-images.githubusercontent.com/10647447/110616433-6f70cc80-818c-11eb-9734-ba21050ef244.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.