new commit
This commit is contained in:
1 parent
0cea076e61
commit
8d115a87f6
4 files changed
+908
-1
No files matched your search
+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