feat(api): cors

This commit is contained in:
Stan Girard 2023-06-03 19:07:36 +02:00
parent b80e95c20e
commit 5323d93dc1
2 changed files with 7 additions and 6 deletions

View File

@ -1,9 +1,9 @@
{
"taskDefinitionArn": "arn:aws:ecs:eu-west-3:253053805092:task-definition/quivr:5",
"taskDefinitionArn": "arn:aws:ecs:eu-west-3:253053805092:task-definition/quivr:11",
"containerDefinitions": [
{
"name": "quivr",
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:dc495523cc930780e59c40653043ee570af110eb",
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:b80e95c20e2c3d78ef64b3a307e43d7d7823e77e",
"cpu": 256,
"memory": 512,
"portMappings": [
@ -40,7 +40,7 @@
"taskRoleArn": "arn:aws:iam::253053805092:role/ecsTaskExecutionRole",
"executionRoleArn": "arn:aws:iam::253053805092:role/ecsTaskExecutionRole",
"networkMode": "awsvpc",
"revision": 5,
"revision": 11,
"volumes": [],
"status": "ACTIVE",
"requiresAttributes": [
@ -89,7 +89,7 @@
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"registeredAt": "2023-06-02T08:27:05.135Z",
"registeredBy": "arn:aws:iam::253053805092:root",
"registeredAt": "2023-06-03T15:46:30.484Z",
"registeredBy": "arn:aws:iam::253053805092:user/github",
"tags": []
}

View File

@ -35,7 +35,8 @@ app = FastAPI()
origins = [
"http://localhost",
"http://localhost:3000",
"https://api.quivr.app"
"https://quivr.app",
"https://www.quivr.app",
]
app.add_middleware(