DEV Community

Discussion on: No 'Access-Control-Allow-Origin' header is present...

Collapse
 
yanivnoema profile image
Yaniv Noema

Hi,

did you try using CORS?

something like this:
from flask_cors import CORS
app = Flask(name)
CORS(app)

Collapse
 
bredmond1019 profile image
bredmond1019

Hi, yes I am using this.

It only seems to have issues when I am doing some sort of authentication process. If i am just calling my API to grab data from my database, or make an outside API call, it works just fine.