We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
We are experimenting issue with response headers (goal is work with CORS)
This code in our lambda function but we are not able to see headers in the answer
awsProxyResponse.getHeaders().put( "Access-Control-Allow-Origin", "*" ); awsProxyResponse.getHeaders().put( "Access-Control-Allow-Credentials", "true" ); awsProxyResponse.getHeaders().put( "Access-Control-Allow-Headers", "Access-Control-Allow-Origin, Content-Type" ); awsProxyResponse.getHeaders().put( "Access-Control-Allow-Methods", "GET,POST,PUT,DELETE,OPTIONS,HEAD" );
We tried also adding this in yaml file
Events: MyApp: Type: AWS::Serverless::Api Properties: Path: /myapp/{proxy+} Method: any Cors: AllowMethods: "'GET,POST,PUT,DELETE,OPTIONS,HEAD'" AllowHeaders: "'Access-Control-Allow-Headers, Access-Control-Allow-Origin, Content-Type'" AllowOrigin: "'*'" AllowCredentials: True
Thanks a lot for any help
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
We are experimenting issue with response headers (goal is work with CORS)
This code in our lambda function but we are not able to see headers in the answer
We tried also adding this in yaml file
Thanks a lot for any help
The text was updated successfully, but these errors were encountered: