Front-end cross-domain error (own notes)

1 415 requests an error, it would have to look at their own request header contentType is set up, many said online contentType set to application / json, in the data set JSON.stringify (). This can really solve the problem of request header errors while the emergence of new problems, cross-domain error is reported, in fact, contentType is set incorrectly, you should be set to contentType: application / x-www-form-urlencoded; see below great God blog.

https://blog.csdn.net/qq_39403545/article/details/82116464

Guess you like

Origin www.cnblogs.com/bride/p/11980967.html