Invalid HTTP request received when making request from NextJS front-end server proxy #11490
Unanswered
lukemasonIC
asked this question in
Questions
Replies: 1 comment 2 replies
-
Have you read about the limitation of wildcards in CORS origins? https://fastapi.tiangolo.com/tutorial/cors/#wildcards
Have you tried to specify front-end origin explicitly? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
I'm running a NextJS server proxy in my front-end application to make requests to a FastAPI back-end. I have set the CORS wildcard and read through the docs but still receive the invalid http request error. I imagine it has to do with CORS, but I still can't seem to get it working. Any help would be great, thank you!
Operating System
macOS
Operating System Details
No response
FastAPI Version
0.100.0
Pydantic Version
2.0.3
Python Version
Python 3.11.7
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions