How to make cross-domain ajax Post request using jquery?

samyak bhalerao

I am trying to make ajax POST request but always get error as "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "myURL". This can be fixed by moving the resource to the same domain or enabling CORS." and "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access." I am able to post data to server but can't get response from server.

samyak bhalerao

Limitations of making jsonp request is that we can perform only "GET" request to server.What I wanted was making cross domain "POST" request.I found one solution for such situations. Install xampp server create proxy server () deploy html project on proxy server and then make normal "POST" request using jquery.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Ext.Ajax Cross-Domain post request

분류에서Dev

jQuery cross domain AJAX request fails with XMLHttpRequest cannot load error

분류에서Dev

Ajax cross domain request fail to set headers

분류에서Dev

String is being truncated when passed in request using jquery ajax post

분류에서Dev

How to send and retrieve cross-domain ajax data in userscript

분류에서Dev

Ajax Cross Domain 여부

분류에서Dev

How to send form with ajax post request with rails

분류에서Dev

jQuery cross domain ajax call - Interpreted as script but transferred with MIME type text/xml

분류에서Dev

POST form on button click using jquery ajax

분류에서Dev

Cross Domain Ajax (JSONP) Callback Issue

분류에서Dev

How can I make a custom "POST" request on client side?

분류에서Dev

how to make a faked Android/ios http post request from desktop

분류에서Dev

ajax json post request to flask

분류에서Dev

ajax search function using POST method without jquery

분류에서Dev

Unable to call web method using AJAX post Jquery method

분류에서Dev

How to disable google chrome cross domain security

분류에서Dev

POST a cross domain HTTP form from HTTPS page

분류에서Dev

Handling cross domain preflight AJAX OPTIONS requests with Spring MVC 4

분류에서Dev

jQuery: How to post data after clicking on a link without ajax?

분류에서Dev

How to pass additional Hidden variable to jQuery/Ajax Post dataObj?

분류에서Dev

how to make <option> to <otpgroup> using jquery

분류에서Dev

jquery ajax simple post/get

분류에서Dev

jquery ajax post data undefined

분류에서Dev

url in jquery ajax post in codeigniter

분류에서Dev

Cross-Origin Request Blocked angular JS post 요청

분류에서Dev

Loading JSON cross-domain using an HTTPS url with AngularJS

분류에서Dev

AJAX 요청 Cross-Origin Request Blocked 오류

분류에서Dev

Cannot send ajax post request to Servlet

분류에서Dev

Why Ajax post request is executed several times?

Related 관련 기사

  1. 1

    Ext.Ajax Cross-Domain post request

  2. 2

    jQuery cross domain AJAX request fails with XMLHttpRequest cannot load error

  3. 3

    Ajax cross domain request fail to set headers

  4. 4

    String is being truncated when passed in request using jquery ajax post

  5. 5

    How to send and retrieve cross-domain ajax data in userscript

  6. 6

    Ajax Cross Domain 여부

  7. 7

    How to send form with ajax post request with rails

  8. 8

    jQuery cross domain ajax call - Interpreted as script but transferred with MIME type text/xml

  9. 9

    POST form on button click using jquery ajax

  10. 10

    Cross Domain Ajax (JSONP) Callback Issue

  11. 11

    How can I make a custom "POST" request on client side?

  12. 12

    how to make a faked Android/ios http post request from desktop

  13. 13

    ajax json post request to flask

  14. 14

    ajax search function using POST method without jquery

  15. 15

    Unable to call web method using AJAX post Jquery method

  16. 16

    How to disable google chrome cross domain security

  17. 17

    POST a cross domain HTTP form from HTTPS page

  18. 18

    Handling cross domain preflight AJAX OPTIONS requests with Spring MVC 4

  19. 19

    jQuery: How to post data after clicking on a link without ajax?

  20. 20

    How to pass additional Hidden variable to jQuery/Ajax Post dataObj?

  21. 21

    how to make <option> to <otpgroup> using jquery

  22. 22

    jquery ajax simple post/get

  23. 23

    jquery ajax post data undefined

  24. 24

    url in jquery ajax post in codeigniter

  25. 25

    Cross-Origin Request Blocked angular JS post 요청

  26. 26

    Loading JSON cross-domain using an HTTPS url with AngularJS

  27. 27

    AJAX 요청 Cross-Origin Request Blocked 오류

  28. 28

    Cannot send ajax post request to Servlet

  29. 29

    Why Ajax post request is executed several times?

뜨겁다태그

보관