jQuery $.ajax(), $.post sending “OPTIONS” as REQUEST_METHOD in Firefox

前端 未结 23 2793
傲寒
傲寒 2020-11-22 14:38

Having trouble with what I thought was a relatively simple jQuery plugin...

The plugin should fetch data from a php script via ajax to add options to a

23条回答
  •  一向
    一向 (楼主)
    2020-11-22 15:20

    Try to add the following:

    dataType: "json",
    ContentType: "application/json",
    data: JSON.stringify({"method":"getStates", "program":"EXPLORE"}),  
    

提交回复
热议问题