Closed dblencowe closed 4 years ago
. Further investigation seems to be lack of support for the CORS definition on the http event
cors:
origin: '*' # <-- Specify allowed origin
headers: # <-- Specify allowed headers
- Content-Type
- X-Amz-Date
- Authorization
- X-Api-Key
- X-Amz-Security-Token
- X-Amz-User-Agent
allowCredentials: fals
Thanks for reporting @dblencowe . This should be - at least partially - fixed in https://github.com/localstack/localstack/pull/2186 . Can you please do a docker pull localstack/localstack
once the image has been pushed by our CI system, and then give it another try?
Please note that API Gateway and WebSocket APIs are not supported in the community version of LocalStack - you may have to comment out these two lines to get it working:
# - websocket:
# route: $default
Thanks
I've started trying to use localstack with serverless using this plugin but am unable to successfully deploy to the local environment.
I've tried updating my localstack docker container to the latest build.
serverless.yml
sls deploy command:
localstack docker container output: