How to Fix the Lighthouse “Issues were logged in the Issues panel” Audit
When Lighthouse's Best Practices section shows "Issues were logged in the Issues panel in Chrome Devtools" (in the Japanese UI, this title is shown in Japanese), something was blocked while the page was loading, for example by CSP. In the CSP and COEP case I tested here, you fix each row in the table's "Issue type" column by either allowing the blocked resource to load or changing how the page places its scripts. This audit flags the situation where adding security headers such as Content Security Policy (CSP) or Cross-Origin-Embedder-Policy (COEP) stops images or scripts from loading.
In a test environment, I built a page where CSP and COEP blocked an inline script, a script from another origin, and an image from another origin. After fixing the headers and the page, the issues went away and the Best Practices score went from 92 to 100.
The test environment was Ubuntu 24.04, Node.js 22.23.5, and Lighthouse 13.6.0 (the CLI installed with npm). I ran Google Chrome for Testing 158, bundled with Playwright 1.63.0, in headless mode. I ran only the Best Practices category (--only-categories=best-practices) with the default mobile settings. The test pages were served by a small Node.js server: the page was at localhost:8000, and the cross-origin image and script were at 127.0.0.1:8001. I checked the problems that reach the Issues panel by receiving the Audits.issueAdded events over the Chrome DevTools Protocol (CDP) from Playwright, not through the DevTools UI. Of the five issue types this audit counts, I did not test Mixed content, Cookie, or Heavy resource usage by ads. I also did not test the DevTools Lighthouse panel or PageSpeed Insights.
- 1. This audit counts only five types of issues
- 2. Before the fix: CSP and COEP block three resources
- 3. Return a CORP header for the cross-origin image
- 4. CSP: move inline scripts to a file and allow the source
- 5. After the fix: score 100 and the page displays correctly
- 6. Report-Only CSP still fails the audit when there is a violation
- 7. Quirks mode problems reach the Issues panel but do not count for this audit
This audit counts only five types of issues
In the Lighthouse 13.6.0 code, this audit (inspector-issues) counts five types of issues that Chrome reports while a page loads. These names appear in the "Issue type" column of the report table:
- Mixed content
- Cookie
- Blocked by cross-origin policy
- Heavy resource usage by ads
- Content security policy
If there is even one, the audit fails (score 0). Its weight in the Best Practices score is 1. In this test, only "Blocked by cross-origin policy" and "Content security policy" appeared.
The Chrome DevTools Issues panel documentation shows that the Issues panel also reports other problems, such as Quirks mode and the autocomplete attribute. Those do not cause this audit to fail. I show the results of testing them later.
Before the fix: CSP and COEP block three resources
The test page is the following HTML. It loads a logo image and a small weather widget script (widget.js) from another origin (127.0.0.1:8001). The announcement text is inserted by an inline script.
<h1>猫の手ニュース</h1>
<img src="http://127.0.0.1:8001/logo.png" alt="ロゴ" width="120" height="40">
<p id="today">読み込み中…</p>
<div id="widget"></div>
<script>
document.querySelector('#today').textContent = '今日のお知らせはありません';
</script>
<script src="http://127.0.0.1:8001/widget.js"></script>
The page server returns the following headers. The image server does not return a Cross-Origin-Resource-Policy (CORP) header.
$ curl -sI http://localhost:8000/ | grep -i -E '^(HTTP|content-security|cross-origin)'
HTTP/1.1 200 OK
Content-Security-Policy: script-src 'self'
Cross-Origin-Embedder-Policy: require-corp
I ran Lighthouse on this page and used a small script (summary.mjs) to extract this audit and the score from the result JSON. The part of run.sh that runs Lighthouse is shown below. The Chrome path was passed in through the CHROME_PATH environment variable before this command.
npx lighthouse "$2" --only-categories=best-practices --output=json --output=html --output-path=./out/$1 --chrome-flags="--headless=new --no-sandbox" --quiet
$ ./run.sh bad http://localhost:8000/
exit: 0
$ node summary.mjs out/bad.report.json
lighthouseVersion: 13.6.0 formFactor: mobile locale: en-US
best-practices score: 92
inspector-issues: score=0 title="Issues were logged in the `Issues` panel in Chrome Devtools" weight=1
issueType: Blocked by cross-origin policy
url: http://127.0.0.1:8001/logo.png
issueType: Content security policy
url: http://127.0.0.1:8001/widget.js
failed in best-practices: errors-in-console, inspector-issues
In the HTML report, there is one row for each issue type, and the URLs of the blocked resources appear below it.

I opened the same page in Playwright and received the problems that reach the Issues panel through CDP. There were three (console output omitted):
$ node issues.mjs http://localhost:8000/
issue: code=BlockedByResponseIssue details=blockedByResponseIssueDetails reason=CorpNotSameOriginAfterDefaultedToSameOriginByCoep url=http://127.0.0.1:8001/logo.png
issue: code=ContentSecurityPolicyIssue details=contentSecurityPolicyIssueDetails violatedDirective=script-src-elem blockedURL=(inline) status=kInlineViolation
issue: code=ContentSecurityPolicyIssue details=contentSecurityPolicyIssueDetails violatedDirective=script-src-elem blockedURL=http://127.0.0.1:8001/widget.js status=kURLViolation
issues: 3
#today: 読み込み中…
#widget:
img naturalWidth: 0
The blockedURL=(inline) line means the inline script violated CSP. (inline) is what my issues.mjs prints when there is no URL. Because this violation has no URL, the Lighthouse table does not show a URL under "Content security policy." It does not appear in the table, but the inline script was blocked too, so I fix it as well.
The page was also visibly broken. The announcement stayed at "Loading…", the weather area was empty, and the image did not load (naturalWidth was 0).
The same three issues were also logged as console errors, and errors-in-console in Best Practices failed as well. Both audits have weight 1, so two failing audits gave a score of 92.
Return a CORP header for the cross-origin image
The "Blocked by cross-origin policy" row is caused by COEP require-corp. According to MDN's Cross-Origin-Embedder-Policy documentation, a page with require-corp can load resources in no-cors mode only if they are from the same origin or return a CORP header that allows embedding.
In the test, I added the following header to the image server. In MDN's Cross-Origin-Resource-Policy documentation, cross-origin means the resource can be loaded from any origin.
$ curl -sI http://127.0.0.1:8001/logo.png | grep -i -E '^(HTTP|cross-origin)'
HTTP/1.1 200 OK
Cross-Origin-Resource-Policy: cross-origin
If the image server already allows loading through CORS, you can also add the crossorigin attribute to <img> to load it in CORS mode. The MDN Cross-Origin-Embedder-Policy documentation mentioned above describes this approach.
CSP: move inline scripts to a file and allow the source
The "Content security policy" row is caused by script-src 'self'. Only script files from the same origin were allowed, so the inline script and widget.js from 127.0.0.1:8001 were both blocked.
I moved the inline script to a same-origin file (/app.js):
<script src="/app.js"></script>
<script src="http://127.0.0.1:8001/widget.js"></script>
I allowed widget.js by adding its source to the CSP script-src directive:
$ curl -sI http://localhost:8000/ | grep -i -E '^(HTTP|content-security|cross-origin)'
HTTP/1.1 200 OK
Content-Security-Policy: script-src 'self' http://127.0.0.1:8001
Cross-Origin-Embedder-Policy: require-corp
If you want to keep the inline script, you can allow it with 'unsafe-inline', a nonce, or a hash, as described in MDN's script-src documentation. MDN warns that 'unsafe-inline', which allows all inline scripts, is a security risk, and recommends a nonce or a hash instead.
After the fix: score 100 and the page displays correctly
I fixed the headers and the page, then ran the tests again:
$ node issues.mjs http://localhost:8000/
issues: 0
#today: 今日のお知らせはありません
#widget: 天気:晴れ
img naturalWidth: 360
$ ./run.sh fixed http://localhost:8000/
exit: 0
$ node summary.mjs out/fixed.report.json
lighthouseVersion: 13.6.0 formFactor: mobile locale: en-US
best-practices score: 100
inspector-issues: score=1 title="No issues in the `Issues` panel in Chrome Devtools" weight=1
failed in best-practices: (none)
No problems reached the Issues panel. The audit passes with the message "No issues in the Issues panel in Chrome Devtools" (in the Japanese UI, this title is shown in Japanese), and the score is 100. The announcement and the weather text were shown, and the image loaded.
Report-Only CSP still fails the audit when there is a violation
When you first add a CSP, you may use Content-Security-Policy-Report-Only, which reports violations without blocking them (MDN's Content-Security-Policy-Report-Only documentation). I returned the same script-src 'self' as Report-Only, with CORP on the image, and tested that setup.
$ node issues.mjs http://localhost:8000/
issue: code=ContentSecurityPolicyIssue details=contentSecurityPolicyIssueDetails violatedDirective=script-src-elem blockedURL=(inline) status=kInlineViolation
issue: code=ContentSecurityPolicyIssue details=contentSecurityPolicyIssueDetails violatedDirective=script-src-elem blockedURL=http://127.0.0.1:8001/widget.js status=kURLViolation
issues: 2
#today: 今日のお知らせはありません
#widget: 天気:晴れ
img naturalWidth: 360
console info: Executing inline script violates the following Content Security Policy directive 'script-src 'self''. …(省略)… The policy is report-only, so the violation has been logged but no further action has been taken.
console info: Loading the script 'http://127.0.0.1:8001/widget.js' violates the following Content Security Policy directive: "script-src 'self'". …(省略)… The policy is report-only, so the violation has been logged but no further action has been taken.
$ ./run.sh reportonly http://localhost:8000/
exit: 0
$ node summary.mjs out/reportonly.report.json
lighthouseVersion: 13.6.0 formFactor: mobile locale: en-US
best-practices score: 96
inspector-issues: score=0 title="Issues were logged in the `Issues` panel in Chrome Devtools" weight=1
issueType: Content security policy
url: http://127.0.0.1:8001/widget.js
failed in best-practices: inspector-issues
The script ran, and the announcement and weather text were displayed. Even so, the violations reached the Issues panel, and this audit failed. The console output was at info level rather than error level, so errors-in-console passed, and the score was 96.
With Report-Only, the audit keeps failing as long as a violation remains. To remove the violation, use the fixes described in the earlier section.
Quirks mode problems reach the Issues panel but do not count for this audit
I also tested a page without a doctype. Chrome reports a Quirks mode problem (QuirksModeIssue), which reaches the Issues panel. (The #today and other elements do not exist on this page, so those lines are omitted.)
$ node issues.mjs http://localhost:8000/quirks
issue: code=QuirksModeIssue details=quirksModeIssueDetails
issues: 1
$ ./run.sh quirks http://localhost:8000/quirks
exit: 0
$ node summary.mjs out/quirks.report.json
lighthouseVersion: 13.6.0 formFactor: mobile locale: en-US
best-practices score: 96
inspector-issues: score=1 title="No issues in the `Issues` panel in Chrome Devtools" weight=1
failed in best-practices: doctype
This audit still passed. The audit that failed was the separate doctype audit, which checks for a doctype. Not every problem in the Issues panel leads to a failure in this audit. When you fix this audit, start with the types listed in the "Issue type" column of the report table.





