Ajax request for an interface to input token in headers can only respond successfully on Google browser. Why?

request product list interface on Google browser:
as shown in figure

clipboard.png
...]

clipboard.png
200

clipboard.png
Baidu said that the data in the first row and first column of JSON data ended unexpectedly,
but there was no problem without passing in headers.
Why is it the background data problem or the front-end ajax code problem?

Mar.24,2021

pass token? in headers Where is it spread? Url? Or requestHeader?


firefox mistakenly reports that json is in the wrong format, which has nothing to do with header. See if the data sent in firefox is correct.

Menu