0

I am starting a new project but i am stuck at one place. I have created a site in laravel(php). And now i have created a domain on other server. And now when i use ajax to GET and POST data cross domain. I am not able to do so because every time i make a request it is giving me error in console that "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin "domain.com" is therefore not allowed access. " Then i go through some articles and i found jsonp but the issue is that it only GET data and project also need POST method. Is there any solution for that ?

0 Answers0