I have limited knowledge of FastAPI. Thanks for any help you can give me.
I want to get a token and process it in the middleware.
However, the problem occurs at the link.
https://github.com/fujitomo/menta-todo/blob/fuji/FE-0004_login/backend/src/other/middleware.py#L30
I have a value set in the header access_token. However, the header value is set as follows
access-control-request-headers : access-token,content-type ,.
The access-token value is set to None.
However, if the following link is set to if True:
, the value is set without any problem.
https://github.com/fujitomo/menta-todo/blob/fuji/FE-0004_login/backend/src/other/middleware.py#L30
Do you know the cause of this problem?
I tried Authorize with the following link and the result was the same.
https://indominusbyte.github.io/fastapi-jwt-auth/usage/basic/
Requesting from the Swagger UI, the token value can be obtained without problems.
The problem is when a request is made from React using the process linked below.
https://github.com/fujitomo/menta-todo/blob/fuji/FE-0004_login/backend/src/other/middleware.py#L30