I am facing an issue where a background image loaded from a remote server is being blocked by my CSP with the following message
Content Security Policy: The page's settings blocked the loading of a resource at self ("default-src * "). Source: background-image: url('....
Here is the Content Security Policy (CSP) in question:
<meta http-equiv="Content-Security-Policy" content="default-src * https://xxxxx.com; script-src * 'unsafe-eval' 'unsafe-inline'; img-src 'self' data:">
In this CSP, the domain specified as xxxxx
is the relevant one.
It seems like the issue might be caused by the use of url(...
, although according to theCSP specification, url()
is not considered a scheme. This leaves me unsure about how to proceed. Any suggestions or insights would be greatly appreciated.
[UPDATE]
Adding onto @sideshowbarker's comment, it should be noted that this request is originating from an inline style
attribute rather than a tag.