fastapi-jwt-auth icon indicating copy to clipboard operation
fastapi-jwt-auth copied to clipboard

No Swagger UI Operations Permitted

Open AmmarAhmadKhan opened this issue 3 years ago • 1 comments

I am not finding any way for accessing authorization header through fastapi_jwt_auth library, like we have the Swagger UI Authorization available for OAuth2PasswordBearer in which we can give tokenUrl and Swagger automatically adds Authorization header in successive requests

AmmarAhmadKhan avatar Feb 04 '22 12:02 AmmarAhmadKhan

try removing domain, while setting up cookie. It worked for me.

response.set_cookie( key=COOKIE_AUTHORIZATION_NAME, value=f"Bearer {access_token}", # domain=COOKIE_DOMAIN, httponly=True, max_age=60, # 3 hours expires=60, #samesite="none", secure=True # 3 hours # samesite="Lax", secure=False )

krishnardt avatar Feb 06 '22 13:02 krishnardt