79544515

Date: 2025-03-30 11:34:25
Score: 0.5
Natty:
Report link

This is a very beginner level mistake I would say please check your CORS origin list carefully.

Make sure your frontend and backend domain matches properly, for example http://localhost:9000 and http:127.0.0.1:9000 is not same according to the cors origin list. Also there should be no slash at the end of your domain.

origins = [
    "http://localhost:3000",  # React frontend
    "http://127.0.0.1:3000"
]

For safety reason do something like this ->

origins = [
    "http://localhost",  # React frontend
    "http://127.0.0.1",  # React frontend
    "http://localhost:3000", # React frontend
    "http://127.0.0.1:3000"  # React frontend
]
Reasons:
  • RegEx Blacklisted phrase (1): I would say please
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aniket