Closed
Bug 1787576
Opened 2 years ago
Closed 2 years ago
Images on asus.com from kmpic.asus.com are blocked, despite default-src having *.asus.com and no img-src specified
Categories
(Core :: DOM: Security, defect)
Core
DOM: Security
Tracking
()
RESOLVED
DUPLICATE
of bug 1672106
People
(Reporter: twisniewski, Unassigned)
References
()
Details
On the page https://www.asus.com/support/FAQ/1037906/, I see this CSP header:
default-src *.asus.com *.asus.com.cn https: 'unsafe-inline' 'unsafe-eval' blob: data: asus-support:; frame-ancestors 'self' *.asus.com *.asus.com.cn;
And yet the images on the page (served from kmpic.asus.com) are still shown to be being blocked due to CSP. Is this maybe because the images are served over http rather than https?
Comment 1•2 years ago
|
||
Yes.
default-src
is the fallback for any missing-src
directive- if there's no scheme then it's the same scheme as the current page.
https:
already means any https: resource so the asus.com entries don't adding anything. they probably meanthttp://*.asus.com
This is working as intended from a CSP POV.
If the page works on Chrome it may be because they are automatically converting the http: urls to https for images. That is, they are (sort of) acting as if the CSP had a upgrade-insecure-request
directive in it.
Reporter | ||
Comment 2•2 years ago
|
||
I see. It seems that must be it (it does work on Chrome, and the images are still served over HTTP). Is this something we can/should do as well? Or does Chrome intend to stop doing that, so Asus should fix it?
Flags: needinfo?(dveditz)
Reporter | ||
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(dveditz)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•