Weird Json Behavior When Requesting A Json File Via $.ajax
I have a json file (text2.json) and a text file (text2.txt) which has the exact same content as text2.json. I found it quite interesting when requesting json file via $.ajax: Reque
Solution 1:
Probably the error is related to the headers of the response. You are specifying a json datatype, thus the expected headers should be of type application/json
Post a Comment for "Weird Json Behavior When Requesting A Json File Via $.ajax"