-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
login and logout should have options configured or provide a way to set custom allow header options #99
Comments
This one completely slipped past me! I must have saw the notification when you created the other issue around the same time and thought they were the same. Sorry about that! This should definitely be fixed. I'll update it asap (unless you beat me to it). This could probably be added as the default OPTIONS endpoint on all routes (whenever CORS is enabled). |
Excellent. That sounds good to me.
|
+1 |
This is at the top of my list when I return from vacation. I'd be willing to review a pull request on vacation, but I promised myself I wouldn't handle any updates, no matter how minor. As for middleware, middleware makes everything better :) It just makes your api that much more modular, since it can be so easily swapped out. The focus of v0.9.0 will be middleware support on endpoints (it technically already exists, but I want to provide a clean api for it), and converting existing functionality to middleware. We can do a quick fix for this in the meantime. |
No problem. I am not in a rush on this.
|
+1 :) |
- Add default OPTIONS endpoint when CORS is enabled - Resolve #99
Can anyone test faa77e0 and let me know if it resolves this issue? I still can't think of a way to setup automated tests for CORS, and I don't have an API in place to test this against right now. All you should need is to have the |
- Add default OPTIONS endpoint when CORS is enabled - Resolve #99
I think I've fixed this issue. I know @jazeee is busy right now. Is anyone else able to test this out and let me know if it works so I can publish it? @AlexFrazer? @nooitaf? I hope to make some major modifications to restivus soon, and I'll have to pull this in without fully testing if it comes to that. All existing tests pass, so at least it doesn't appear to break anything. Any help is greatly appreciated. Thanks! |
I think the changes look good. I see no issue. |
v0.8.4 has been published with this update |
From testing with Angular v1.2.28 $resource against Restivus, I am finding that I cannot use the login and logout endpoints via CORS.
In order to make the endpoints work, they should have options set, as:
For login:
For logout:
EDIT:
Specifically, this is via Cross origin. Ie: one site accessing REST on another site.
The text was updated successfully, but these errors were encountered: