New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 806202 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 271452
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Unable to view https://cuoc.org.uk/docs/2016_risk_assessment.pdf due to CSP violation

Project Member Reported by foolip@chromium.org, Jan 26 2018

Issue description

This was reported on https://github.com/webcompat/web-bugs/issues/5095

It appears as though cuoc.org.uk is sending this CSP header:
default-src 'self'; script-src 'self' 'unsafe-inline' www.google-analytics.com; img-src * data:; child-src 'none'; object-src 'none'; media-src 'none'; block-all-mixed-content

And because we use use an <embed> object in https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/html/PluginDocument.cpp, it fails like this:
Refused to load plugin data from 'https://cuoc.org.uk/docs/2016_risk_assessment.pdf' because it violates the following Content Security Policy directive: "object-src 'none'".

I've confirmed that it works on a server without a CSP header.
 
Owner: dsinclair@chromium.org
Status: Unconfirmed (was: Untriaged)
Dan, who's a good owner for this?
Mergedinto: 271452
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment