What problems may using the MIME type application/json cause?

后端 未结 3 1984
不知归路
不知归路 2020-12-21 06:10

I am working on a web service the needs to return JSON data. I read that I should use application/json but am not sure what problems this may cause?

For example, w

3条回答
  •  暖寄归人
    2020-12-21 06:39

    This has been discussed before:

    What is the correct JSON content type?

    Any firewalls that block the MIME type will cause problems with any AJAX-style web apps, so I really wouldn't worry about it.

提交回复
热议问题