I’m interested in loading a picture in a canvas to read the pixel values. This requires the image to be CORS-enabled. Given an image URL, it is possible to know if the corresponding image is CORS-enabled without having to download it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No code solution is http://www.corsproxy.com/ the other is the one mentioned above. Just make a short HEAD request with the method described here: HTTP HEAD Request in Javascript/Ajax? and check the responseHeaders.