correct cors
This commit is contained in:
@@ -20,7 +20,7 @@ logging.basicConfig(level=logging.INFO)
|
|||||||
allowed_origins = [
|
allowed_origins = [
|
||||||
"https://juhannus.davylis.com",
|
"https://juhannus.davylis.com",
|
||||||
"http://192.168.100.*",
|
"http://192.168.100.*",
|
||||||
"http://localhost:*/",
|
"http://localhost:*",
|
||||||
]
|
]
|
||||||
CORS(app, resources={r"*": {"origins": allowed_origins}}) # Only allow example.com
|
CORS(app, resources={r"*": {"origins": allowed_origins}}) # Only allow example.com
|
||||||
database = DBClient(app)
|
database = DBClient(app)
|
||||||
@@ -28,4 +28,4 @@ registerUserEndpoints(app=app, database=database)
|
|||||||
registerHostingEndpoints(app=app, database=database)
|
registerHostingEndpoints(app=app, database=database)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(debug=True)
|
app.run(debug=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user