I have tried everything to get past CORS errors, but I am still getting Request header field Cache-Control is not allowed by Access-Control-Allow-Headers in preflight response.
I’ve trie the default cors: true
but it had no effect. Here’s my current serverless.yml:
signedPolicy: handler: functions/assets/signedPolicy.signedPolicy events:`Preformatted text` - http: path: api/assets/signedPolicy method: post cors: origins: - '*' headers: - Cache-Control - X-Requested-With - Content-Type - X-Amz-Date - Authorization - X-Api-Key - X-Amz-Security-Token - Access-Control-Allow-Origin - Access-Control-Allow-Credentials authorizer: arn:aws:cognito-idp:us-west-2:883959493850:userpool/us-west-2_F2GUdhdLr