What should the value of content-type http header be if the message body is JSONP. application/javascript?
Depends on the body's actual content. That's what the Content-Type
header 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/json
instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With