You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be specific, what I need the most is to insert into my Serenity API from another application. I'm currently ignoring the AntiForgeryToken; I don't want to address that now. First, I want to log in a user who only has permissions to insert information into a specific endpoint.
Steps so far:
Disable the AntiForgeryToken in AccountPage/Login and in the endpoint I want to access.
Configure CORS to be able to connect (I had some issues with that).
Make the request, in this case using a simple fetch from JavaScript to log in (previously tested in Postman).
Up to this point, everything is fine. Now the problem starts: in Postman, the cookie is obtained automatically, but when I do it from a method, I can't read it. I understand this is fine, but then how do I save it to send it in my next requests?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
To be specific, what I need the most is to insert into my Serenity API from another application. I'm currently ignoring the AntiForgeryToken; I don't want to address that now. First, I want to log in a user who only has permissions to insert information into a specific endpoint.
Steps so far:
Up to this point, everything is fine. Now the problem starts: in Postman, the cookie is obtained automatically, but when I do it from a method, I can't read it. I understand this is fine, but then how do I save it to send it in my next requests?
Beta Was this translation helpful? Give feedback.
All reactions