new commit
This commit is contained in:
+17
-1
@@ -351,4 +351,20 @@ print()
|
||||
print("YOU CAN NOT START THE SERVER WITH PYTHON")
|
||||
print("start with:")
|
||||
print("$ bash start_server.sh")
|
||||
print()
|
||||
print()
|
||||
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
app = FastAPI(
|
||||
title="Calendar API",
|
||||
description="Room based agenda system",
|
||||
version="1.0"
|
||||
)
|
||||
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=["*"], # later vervangen door je domein
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
Reference in New Issue
Block a user