Hi Sander,

Thanks for your reply. I'm using HAPI (Walmart Labs) for my backend, and 
have a listener that is fired whenever a request is received. That listener 
never fires for that OPTIONS call.

My server is configured correctly, and a curl gives the right response:

curl -X OPTIONS -ik 'https://localhost:3001/authenticate' -H "Origin: 
https://localhost:8001";
HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
content-length: 2
cache-control: no-cache
access-control-allow-origin: *
access-control-max-age: 86400
access-control-allow-methods: GET, HEAD, POST, PUT, DELETE, OPTIONS
access-control-allow-headers: Authorization, Content-Type, If-None-Match, 
Access-Control-Allow-Headers, Content-Type
access-control-expose-headers: WWW-Authenticate, 
Server-Authorizationset-cookie: 
session=Fe26.2**94705d49717d1273197ae86ce6661775627d7c6066547b757118c90c056e393b*2KYqhATojPoQhpB2OwhDwg*W9GsJjK-F-UPqIIHTBHHZx1RXipo0zvr97_LtTLMscRkKqLqr8H6WiGd2kczVwL5M25FBlB1su0JZllq2QB-9w**5510263d744a9d5dc879a89b314f6379d17a39610d70017d60acef01fa63ec10*pkC9zEOJTY_skGhb4corYRGkUNGJUr8m5O1US2YhaRE;
 Secure; Path=/Date: Wed, 18 Dec 2013 23:35:56 GMTConnection: keep-alive


On Wednesday, December 18, 2013 10:40:40 PM UTC-8, Sander Elias wrote:
>
> Hi Shaun,
>
> Are you absolutely sure it never reaches the server? How did you check? 
> What server are you using, and is it correctly configured to handle CORS?
>

-- 
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.

Reply via email to