Use os seguintes methods no frontend $http.get/post/put/delete... e no
backend verifique se esta permitindo essas requisições.. por exemplo
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Credentials', 'true');
res.header('Access-Control-Allow-Methods', 'PUT, GET, POST, DELETE,
OPTIONS');
res.header('Access-Control-Allow-Headers',
'Access-Control-Allow-Headers, Origin,Accept, X-Requested-With,
Content-Type, Access-Control-Request-Method,
Access-Control-Request-Headers');
*— Ivan H.*
www.ivanhoinacki.com
2016-11-15 12:12 GMT-02:00 'Lucas Lacroix' via Angular <
[email protected]>:
> CORS has nothing to do with AngularJS. This is a function of the browser
> and your web-server.
> Look into how to enable CORS on your web-server.
>
> On Tue, Nov 15, 2016 at 5:11 AM Mark Justin <[email protected]>
> wrote:
>
>> How to enable CORS in angularjs?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Angular" 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 https://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Lucas Lacroix
> Computer Scientist
> Advanced Technology Division, MEDITECH <http://ehr.meditech.com/>
> 781-774-2293
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular" 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 https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Angular" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.