Disable anti-forgery #1092
Closed
AlmazDefourten
started this conversation in
General
Replies: 1 comment
-
Solved it: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have some troubles with disabling anti-forgery in my application:

I have
[FromForm] SetProfilePictureRequest command
parameter in endpoint and request with'Content-Type': 'multipart/form-data'
and have this error, any ideas how i can disable anti-forgery? I use Vue.Js and axios requests. Also thisservices.AddAntiforgery(options => { options.Cookie.Expiration = TimeSpan.Zero;});
and setIgnoreAntiforgeryToken
attribute didn`t work to meBeta Was this translation helpful? Give feedback.
All reactions