amplify-js icon indicating copy to clipboard operation
amplify-js copied to clipboard

Allow x-api-key for public rest api

Open ashika112 opened this issue 9 months ago • 1 comments

Description of changes

Allow x-api-key to pass through. We should check only custom authorization to override the IAM auth. This bring v6 in parity with v5 feature.

V5 Ref: https://github.com/aws-amplify/amplify-js/blob/b88df662d434465e25e797e68f9038819e8756a2/packages/api-rest/src/RestClient.ts#L163

Issue #, if available

#13310 #13378

Description of how you validated changes

  • Manual testing
  • Unit tests

Checklist

  • [x] PR description included
  • [x] yarn test passes
  • [x] Tests are changed or added
  • [ ] Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

ashika112 avatar May 23 '24 22:05 ashika112