AJAX JSONP call automatically adding callback parameter. How to remove that?

前端 未结 2 1598
梦如初夏
梦如初夏 2021-02-14 05:23

I have few Services- with clean-URLs

and while calling each service, the URL pattern is being checked.

Now am calling those URLs via AJAX from another server u

2条回答
  •  情歌与酒
    2021-02-14 05:44

    You should set jsonp: false and not jsonpCallback: false. You should also explicitly set the jsonpCallback option to the callback name you expect to receive from the service.

    Reference: http://api.jquery.com/jQuery.ajax/

提交回复
热议问题