Open
Description
i enable cors on serverless.yml like this
- http:
path: 'ANY /'
cors: true
- http:
path: 'ANY /{proxy+}'
cors: true
but it gives me warning given below and api is giving cors error on react app
Serverless: at 'functions.website.events[0].http': should have required property 'method'
Serverless: at 'functions.website.events[0].http.path': value 'ANY /' does not satisfy pattern /^(?:\*|\/?\S*)$/
Serverless: at 'functions.website.events[1].http': should have required property 'method'
Serverless: at 'functions.website.events[1].http.path': value 'ANY /{proxy+}' does not satisfy pattern /^(?:\*|\/?\S*)$/
Serverless:
Serverless: Learn more about configuration validation here: http://slss.io/configuration-validation
Serverless:
Serverless: Deprecation warning: Starting with next major version, API Gateway naming will be changed from "{stage}-{service}" to "{service}-{stage}".
Set "provider.apiGateway.shouldStartNameWithService" to "true" to adapt to the new behavior now.
More Info: https://www.serverless.com/framework/docs/deprecations/#AWS_API_GATEWAY_NAME_STARTING_WITH_SERVICE
How to get this working.??
Metadata
Metadata
Assignees
Labels
No labels