Closed panesofglass closed 10 years ago
What exactly does not work on your case? Does it have anything to do with this module?
I had CORS working with my angular app, then tried to add the http-auth-interceptor module and found that requests were not being sent. I couldn't tell exactly why; I didn't see any HTTP traffic, and the Origin
request header was included.
I just removed CORS to see if I could get the authService
to work when running directly on top of the back-end services. It almost works; I'm still seeing the browser's (Chrome's) Basic auth login popup. If I can get rid of the browser auth popup, I can move forward with this configuration, though I would like to get back to using CORS at some point in the future.
I solved the popup problem by removing the WWW-Authenticate
header.
At present, this doesn't seem to work with CORS, as I see the requests failing. Would it be possible to add support for this? Do you have a sample showing this working?