I’ve been looking for but didn’t find a definitive answer to the following question :
Which would be the correct HTTP status code to send to reject a cross-domain connection attempt?
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.
I would use the 403 Forbidden, with a correct error message. Because as the RFC says:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4