Closed Bug 1524869 Opened 7 years ago Closed 7 years ago

CORS error not logged in console

Categories

(DevTools :: Console, defect)

64 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: kannes-github, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 OPR/57.0.3098.116

Steps to reproduce:

Load https://hannes.enjoys.it/carto/VIIRS_SNPP_CorrectedReflectance_TrueColor_median/globe_nocors_http.html

I am not sure if this could hint at a security issue, that's why I mark it. Better safe than sorry. :)

The server is mine.

Actual results:

The site fails to load images to drape on the globe visualisation due to CORS. That's ok.

There are no CORS errors logged in the console by Firefox. That's not ok.

Instead Firefox only logs e.g. "Loading mixed (insecure) display content “http://hannes.enjoys.it/carto/VIIRS_SNPP_CorrectedReflectance_TrueColor_median/tiles_nocors/1/0/1.jpg” on a secure page[Learn More]" plus errors from the JS library in use, e.g. "err http://hannes.enjoys.it/carto/VIIRS_SNPP_CorrectedReflectance_TrueColor_median/tiles_nocors/${z}/${x}/${y}.jpg error { ... }" for all the requests.

Expected results:

Firefox should log appropriate CORS errors to the console (ref https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors)

The absence of errors isn't an exploitable security issue that we need to hide.

Group: firefox-core-security
Component: Untriaged → Console
Product: Firefox → DevTools
Attached image cors_error.png

Hello, thanks for filing a bug.
Could you update Firefox to the latest version (65)?
I don't see CORS error in 64 indeed, but I do see them in 65.

Flags: needinfo?(kannes-github)
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME
Flags: needinfo?(kannes-github)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: