Allow CORS for images

Bug #1826006 reported by LukeWH
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Software Center Agent
Fix Released
Undecided
Celso Providelo

Bug Description

We'd like to implement features on snapcraft.io that require drawing images to a canvas (image manipulation such as resizing and cropping).

Due to security issues images loaded from other hosts are prevented from being read by the browser, unless some CORS headers are set [1].

We would only need snapcraft.io whitelisting for images on the /site_media/appmedia/ endpoint.

Cheers!

[1] https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image

Celso Providelo (cprov)
Changed in software-center-agent:
assignee: nobody → Celso Providelo (cprov)
status: New → In Progress
Celso Providelo (cprov)
Changed in software-center-agent:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.