Skip to content

add: Options method to apigateway staging #146

@MehulKChaudhari

Description

@MehulKChaudhari

Add: Options method to APIGateway staging.

Since we use credentials: include browsers sends a OPTION request. But our API gateway don't have so we need to it add it.

Steps to the OPTIONS method in the API gateway.

  1. Visit API gateway region: us-east-1

Select /feature-flags and then select enable cors

Image
  1. Filling the details as per screenshot:

Access-Control-Allow-Origin: *
Note: We are using * in Access-Control-Allow-Origin because our code handles it with regex and API gateway does not support *.rds.com and a regex.

Access-Control-Allow-Methods: GET, OPTIONS, POST
Access-Control-Allow-Headers: Authorization, Content-Type, Cache-Control, Cookie
Access-Control-Expose-Headers: Set-Cookie

Image
  1. Click on save
Image
  1. we have do similar for other routes marked in below below
Image

at last
5. Click on deploy API

Image
  1. Select a stage dev and click on Deploy
Image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions