Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Add CORS headers for image requests

#343

It would be nice if movie posters and backdrops had Access-Control-Allow-Origin: * set the same way as the JSON requests. This would allow post-processing backdrops (eg. detecting average color to set background/text contrast appropriately) using an html5 canvas and javascript.

Reported by Garret Buell · January 22nd, 2014 @ 05:21 PM

State: resolved
Milestone: Marvel's Daredevil
Assigned to: Travis Bell Travis Bell

Activity

  1. Jordan Steele
    Jordan Steele

    Hey would love if this could be added!

    I'm building an iOS/Android app using Apache Cordova and would love to be able to use the image with an HTML canvas element. Thanks!

    January 21st, 2015 @ 05:21 PM

  2. Jordan Steele
    Jordan Steele

    Hey any update on this?!

    Thanks

    April 27th, 2015 @ 06:13 AM

  3. Travis Bell
    Travis Bell
    • State changed from new to resolved
    • Tag set to feature
    • Milestone changed from Icebox to Marvel's Daredevil

    This was pushed live today, there is however a fairly large caveat.

    We are not prepared to purge all our CDN edges due to capacity limitations. As such, you won't see a lot of these assets with the header for a while (until they get purged from the CDN edge caches).

    I did a manual test on this image to verify that it is setup and working properly:

    https://image.tmdb.org/t/p/w780/c1OSRvorPXvGtFka7mgV6Jcw6jd.jpg

    I wish it was easier to propagate this out to all assets but it is just quite simply, not a possibility.

    April 28th, 2015 @ 12:25 PM

  4. Jordan Steele

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.