I am building a web application that uses JWT for authentication. I would like to pass the token in cookies instead of the Authorization header.
Is there a way to intercept the request and check the token from the cookies instead of the header? I tried overriding the OnPreDispatch()
method and adding it to my dispatch class, but it seems like it never gets executed, as the response returns "Unauthorized" before reaching it.