many-garden-6507
05/10/2022, 12:11 PMversion: v0.6.0-alpha.1
log:
level: debug
namespaces:
- id: 0
name: models
dsn: memory
serve:
read:
host: 0.0.0.0
port: 4466
write:
host: 0.0.0.0
port: 4467
cors:
allowed_origins:
- <http://localhost:3000>
but when i run the docker-compose up i get the following outputdamp-sunset-69236
05/10/2022, 12:34 PMcors
settings under read
and write
configuration settingsdamp-sunset-69236
05/10/2022, 12:36 PMserve.read.cors
or serve.write.cors
(depends on what you want to expose to the public internet).
Right now your configuration looks like serve.cors
that leads to configuration errordamp-sunset-69236
05/10/2022, 12:37 PMmany-garden-6507
05/10/2022, 12:38 PMmany-garden-6507
05/10/2022, 12:40 PMversion: v0.6.0-alpha.1
log:
level: debug
namespaces:
- id: 0
name: models
dsn: memory
serve:
read:
host: 0.0.0.0
port: 4466
cors:
allowed_origins:
- <http://localhost:3000>
write:
host: 0.0.0.0
port: 4467
cors:
allowed_origins:
- <http://localhost:3000>
damp-sunset-69236
05/10/2022, 12:41 PMmany-garden-6507
05/10/2022, 12:41 PMdamp-sunset-69236
05/10/2022, 12:42 PMdamp-sunset-69236
05/10/2022, 12:42 PMserve:
read:
cors:
enabled: true
allowed_origins:
- <http://localhost:3000>
allowed_methods:
- POST
- GET
- PUT
- PATCH
- DELETE
many-garden-6507
05/10/2022, 1:01 PMversion: v0.6.0-alpha.1
log:
level: debug
namespaces:
- id: 0
name: models
dsn: memory
serve:
read:
host: 0.0.0.0
port: 4466
cors:
enabled: true
allowed_origins:
- <http://localhost:3000>
allowed_methods:
- POST
- GET
- PUT
- PATCH
- DELETE
allowed_headers:
- Authorization
- Cookie
- Content-Type
exposed_headers:
- Content-Type
- Set-Cookie
# allowed_origins:
# - <http://localhost:3000>
write:
host: 0.0.0.0
port: 4467
cors:
enabled: true
allowed_origins:
- <http://localhost:3000>
allowed_methods:
- POST
- GET
- PUT
- PATCH
- DELETE
allowed_headers:
- Authorization
- Cookie
- Content-Type
exposed_headers:
- Content-Type
- Set-Cookie
# allowed_origins:
# - <http://localhost:3000>
with above configuration as welldamp-sunset-69236
05/10/2022, 1:09 PMmany-garden-6507
05/11/2022, 3:02 PMmany-garden-6507
05/14/2022, 5:08 AMmany-garden-6507
05/16/2022, 8:04 PMdamp-sunset-69236
05/17/2022, 7:53 AMwithCredentials
option for your frontend app?