I'm trying to load an image in ASP.Net Core that's blocked by my CSP.
<img src="@(string.Format("data:image/png;base64,{0}", example))" />
Now I've read you can use the following to allow all data schemes
img-src: data:
Or if you only want to allow SVG's:
img-src: data:image/svg+xml
Does anyone know how to only allow PNG? img-src: data:image/png doesn't seem to work and I can't find any spec on it.