We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I want to securing my APIs which are accessed cross domain, so my expected behavior is(e.g.GET http://my.api/users/me from http://my.web/):
GET http://my.api/users/me
http://my.web/
open http://my.web -(fetch API)-> OPTION http://my.api/users/me -> HTTP 200 -> GET /users/me -> HTTP 403 or HTTP 401 -> location.href='http://my.api/login/cas?return_url=http://my.web/' -> http://my.api/login/cas?return_url=http://my.web/ -> HTTP 302 -> cas server
OPTION http://my.api/users/me
HTTP 200
GET /users/me
HTTP 403
HTTP 401
location.href='http://my.api/login/cas?return_url=http://my.web/'
http://my.api/login/cas?return_url=http://my.web/
HTTP 302
How could I implement this process?
The text was updated successfully, but these errors were encountered:
@lchrennew could you be more precise because I understood that part
OPTION http://my.api/users/me -> HTTP 200 -> GET /users/me -> HTTP 403 or HTTP 401
but not
-> location.href='http://my.api/login/cas?return_url=http://my.web/' -> http://my.api/login/cas?return_url=http://my.web/ -> HTTP 302 -> cas server
Sorry, something went wrong.
No branches or pull requests
Hi,
I want to securing my APIs which are accessed cross domain, so my expected behavior is(e.g.
GET http://my.api/users/me
fromhttp://my.web/
):open http://my.web -(fetch API)->
OPTION http://my.api/users/me
->HTTP 200
->GET /users/me
->HTTP 403
orHTTP 401
->location.href='http://my.api/login/cas?return_url=http://my.web/'
->http://my.api/login/cas?return_url=http://my.web/
->HTTP 302
-> cas serverHow could I implement this process?
The text was updated successfully, but these errors were encountered: