You do it on the server side as middleware. Search for CORS examples for Laravel or PHP
Sent from my LG Mobile Ashutosh Das <[email protected]> wrote: >So how do I enable Cross-Origin Resource Sharing from angularjs side ? For >backend I m using Laravel . > > >On Sun, Jan 12, 2014 at 1:21 AM, Jeff Hubbard <[email protected]> wrote: > >> You have two choices: one, support Cross-Origin Resource Sharing; two, use >> JSONP. What, specifically, you need to post and how you need it returned >> will dictate which method you use. >> >> >> On Saturday, January 11, 2014 6:22:51 AM UTC-8, Ashutosh Das wrote: >>> >>> How to send data using $http.post from different domain . By default it >>> throws "Access-Control-Allow-Origin" . >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "AngularJS" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/angular/0XTElO2pxIc/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/groups/opt_out. >> > >-- >You received this message because you are subscribed to the Google Groups >"AngularJS" group. >To unsubscribe from this group and stop receiving emails from it, send an >email to [email protected]. >To post to this group, send email to [email protected]. >Visit this group at http://groups.google.com/group/angular. >For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
