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.
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] 삭제
몇 마디 만하겠습니다