Comments (5)
it's probably due to not applied migrations. See the commands to run them here: https://github.com/gaganpreet/fastapi-starter/blob/8f8d165f82116cd935d120954b50419da3aad35d/%7B%7Bcookiecutter.project_slug%7D%7D/README.md#step-1-getting-started
from fastapi-starter.
If you still have this issue and the migrations have been applied, please share the output of docker-compose logs backend
. Login and registration is covered in integration tests and this shouldn't happen.
from fastapi-starter.
I'm getting this same issue. The tests are passing. The browser console is showing Cross-Origin requests blocked. I added ["http://localhost", "http://localhost:3000", "https://localhost", "https://localhost:3000"]
all to config.BACKEND_CORS_ORIGINS
but I'm still getting the same errors.
from fastapi-starter.
Please share the output of docker-compose logs backend
.
from fastapi-starter.
In my case same problem appeared when I tried to access 127.0.0.1 instead of localhost due to a check using NODE_ENV. There is a explicit redirect for when it is not a localhost and NODE_ENV is production. This results in http frontend making requests to https backend locally.
from fastapi-starter.
Related Issues (12)
- Creating project with default values throw an error on .env file HOT 1
- Migrate to ruff
- Use uvloop for better performance
- Use annotated FastAPI dependencies
- Update to Python 3.11 HOT 3
- Use newer OpenAPI generator version
- Super-user HOT 1
- Authorization
- Frontend: API calls get transformed from https into http HOT 1
- Issue developing front end "___ cannot be used as a JSX component" HOT 2
- make BearerTransport URL respect settings.API_PATH
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastapi-starter.