mgonto / restangular

AngularJS service to handle Rest API Restful Resources properly and easily
MIT License
7.87k stars 840 forks source link

Restangular.all().post() Sending a OPTIONS request #1226

Closed kaue closed 9 years ago

kaue commented 9 years ago

Hello, after implementing the restangular.all().post() and checking the Network tab from web developer tools there is only one OPTIONS call.

I am doing something wrong?

Response Headers from my API:

Access-Control-Allow-Credentials:true
Access-Control-Allow-Headers:Accept, X-Requested-With
Access-Control-Allow-Methods:GET, POST, PUT, DELETE, OPTIONS
Access-Control-Allow-Origin:*
Allow:POST,GET,OPTIONS,PUT
sutkovoy commented 9 years ago

Maybe CORS ?

kaue commented 9 years ago

Yeah, i just included the cors npm module and everything worked:)

loverzpark commented 8 years ago

@kauegimenes How did u mentioned it ??