What should the value of content-type http header be if the message body is JSONP. application/javascript?
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.
Depends on the body’s actual content. That’s what the
Content-Typeheader stands for.So, if you write a JS callback function to the body, then yes, it should be
application/javascript.Or, if you write a JSON string to the body, then no, it should be
application/jsoninstead.