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

Failed to load resource: net::ERR_ACCESS_DENIED on CSS #9739

Closed
TDurrr1 opened this issue Sep 25, 2019 · 8 comments
Closed

Failed to load resource: net::ERR_ACCESS_DENIED on CSS #9739

TDurrr1 opened this issue Sep 25, 2019 · 8 comments
Labels
needs-investigation PSI/LR PageSpeed Insights and Lightrider

Comments

@TDurrr1
Copy link

TDurrr1 commented Sep 25, 2019

(I commented on Lighthouse issue #9038 with this issue as well, but it had already been closed. I believe this is the first time I’ve ever reported an issue with anything on Github, so if this isn’t the way it’s done, let me know and I’d be happy to fix it.)

Description

On web.dev/measure, using https://monicajean.photography as the URL, I receive a 92 instead of a 100 for best practices because of the following two browser errors which “were logged to the console”:

URL Description
/stylesheets/main.css (monicajean.photography) Failed to load resource: net::ERR_ACCESS_DENIED
/stylesheets/print.css (monicajean.photography) Failed to load resource: net::ERR_ACCESS_DENIED

When I run Chrome’s built-in Lighthouse tests, I do not receive these errors, nor do I have any issues while navigating to the site itself, nor clicking straight through to the stylesheets. I wouldn’t expect to see them here either.

To Reproduce

  1. On web.dev/measure, enter https://monicajean.photography for the URL and click Run Audit.
  2. In the results, the best practices score is 92. An error labeled “Browser errors were logged to the console” is listed.

Expected Behavior

  1. On web.dev/measure, enter https://monicajean.photography for the URL and click Run Audit.
  2. In the results, the best practices score is 100. No console errors were logged, so this issue is not listed.
@robdodson robdodson transferred this issue from GoogleChrome/web.dev Sep 25, 2019
@robdodson robdodson added the PSI/LR PageSpeed Insights and Lightrider label Sep 25, 2019
@connorjclark
Copy link
Collaborator

web.dev uses Lightrider, which runs on internal Google services. Is is possible that your site employs some "bot detection", and is blocking these requests?

@TDurrr1
Copy link
Author

TDurrr1 commented Sep 25, 2019 via email

@connorjclark
Copy link
Collaborator

No, that wouldn't affect anything.

I tried running against https://monicajean.photography/stylesheets/main.css too, and that worked, which was surprising.

@TDurrr1
Copy link
Author

TDurrr1 commented Oct 11, 2019

Interesting update: I was trying out adding a Cache-Control: public, max-age=600 header to every request, and now my best practices score is 100. It’s still 92 without the header, as well as when using private.

@TDurrr1
Copy link
Author

TDurrr1 commented Oct 11, 2019

Never mind, I guess—it worked a few times, but now I’m back down to 92. What does appear to work, however, is adding a cachebuster to the URL in conjunction with the Cache-Control header.

@naveedahmed1
Copy link

I am also having same issue when testing my website https://www.mustakbil.com on web.dev

@ghost
Copy link

ghost commented Nov 1, 2019

Experiencing the same issue on https://apps.rodel.co.za. When I visit the site, there are no errors.

URL
Description
…js/validator.js
(apps.rodel.co.za)
Failed to load resource: net::ERR_ACCESS_DENIED
…flatly/template.css?v=9
(apps.rodel.co.za)
Failed to load resource: net::ERR_ACCESS_DENIED
…css/font-awesome.css
(apps.rodel.co.za)
Failed to load resource: net::ERR_ACCESS_DENIED
…css/bootstrap-select.css
(apps.rodel.co.za)
Failed to load resource: net::ERR_ACCESS_DENIED
…css/component.css
(apps.rodel.co.za)
Failed to load resource: net::ERR_ACCESS_DENIED
…js/jquery.js
(apps.rodel.co.za)
TypeError: $(...).validator is not a function
    at HTMLDocument.<anonymous> (https://apps.rodel.co.za/ui/js/main_form_validation.js?v=9:26:15)
    at j (https://apps.rodel.co.za/ui/js/jquery.js:2:29999)
    at k (https://apps.rodel.co.za/ui/js/jquery.js:2:30313)

@exterkamp
Copy link
Member

This is resolved now 🎉

Read the summary post mortem in #9902 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-investigation PSI/LR PageSpeed Insights and Lightrider
Projects
None yet
Development

No branches or pull requests

5 participants