Giter Club home page Giter Club logo

Comments (5)

alexey-sveshnikov avatar alexey-sveshnikov commented on August 15, 2024

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.

gaganpreet avatar gaganpreet commented on August 15, 2024

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.

carlps avatar carlps commented on August 15, 2024

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.
image

from fastapi-starter.

gaganpreet avatar gaganpreet commented on August 15, 2024

Please share the output of docker-compose logs backend.

from fastapi-starter.

Trubessinum avatar Trubessinum commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.