Content Security Policy: img-src 'self' data:
Try replacing this part:
img-src * 'self' data: https:;
So the complete tag:
<meta http-equiv="Content-Security-Policy" content="default-src *;
img-src * 'self' data: https:; script-src 'self' 'unsafe-inline' 'unsafe-eval' *;
style-src 'self' 'unsafe-inline' *">
Content Security Policy Reference
Configuration of Content Security Policy to retrieve images from remote URL and local
You have a little typo here https//example.com
should be https://example.com
or with a wildcard *.example.com
<meta http-equiv="Content-Security-Policy" content="default-src *;
script-src 'self' 'unsafe-eval' 'unsafe-inline';
img-src *.example.com 'self';
style-src 'self' 'unsafe-inline';">
Refused to load the image 'blob:...' because it violates the following Content Security Policy
This is the fix for both image and base64.
Need to add img-src 'self' blob: data:;
As follow:
<meta http-equiv="Content-Security-Policy"
content="
worker-src blob:;
child-src blob: gap:;
img-src 'self' blob: data:;
default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: content:">
Content Security Policy - data:image/svg+xml is ignored in img-src
Your example CSP is invalid. According to MDN Documentation you should use only hosts, schemas or other constant values. After correction, you example should look like:
img-src 'self' https://stats.g.doubleclick.net/ https://www.facebook.com/ https://www.google-analytics.com/ data:;
Related Topics
Use Excel Vba to Click on a Button in Internet Explorer, When The Button Has No "Name" Associated
CSS Make Div Position Fixed Inside Div with Perspective Propertie
How to Hide/Show a Div When a Button Is Clicked
Fire Onmouseover Event When Element Is Disabled
How to Print a Portion of an HTML Page
How to Specify The Order of CSS Classes
Why Are Bootstrap's Form Elements Rendered Terribly with Struts2-Boostrap-Plugin
Difference Between "Visibility:Collapse" and "Display:None"
How to Remove the First Empty Column in a CSS Grid
How to Set Thymeleaf Th:Field Value from Other Variable
Wrap a Text Within Only Two Lines Inside Div
Can You Style HTML Form Buttons with CSS
How to Get Index of Parent Element Using Watir Webdriver
PHP Mail() - How to Put an HTML Link in an Email
HTML5 Canvas - Fill Circle with Image