IMGIITRoorkee / omniport-docker

The Dockerised setup of the one true portal for any and every educational institute
GNU General Public License v3.0
37 stars 23 forks source link

Change Content Security Policy to allow displaying blob and data images #21

Closed Ajayneethikannan closed 4 years ago

Ajayneethikannan commented 4 years ago

Issue: Images created using window.createObjectURL() were not allowed to be accessed due to the content security policy.

Solution: Change the content security policy header to allow the image sources to be 'self', 'blob:' or 'data:'