Search code examples
javascripthtmlmediacontent-security-policy

Refused to load media from 'blob:"blobfile" because it violates the following Content Security Policy directive: "media-src 'self'"


I'm having problems get video, but before get pictures it's fine

my picenter image description here

and my vid

enter image description here

and my error in blob http://localhost:6081/a564e7f1-e954-4b48-bc1f-d57ab4d80ced ( video blob )

enter image description here

in ContentSecurityPolicy: im just adding media-src 'self';


Solution

  • try to adding this in content security policy media-src 'self' data: blob: *;