You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NOTE: OAC currently isn't viable for APIs for two reasons:
72
+
// 1. It doesn't sign PUT/POST payloads
73
+
// 2. It overrides the Authorization header. You *may* be able to get around this with a CloudFront or Lambda@Edge Viewer Request Function that maps the
74
+
// Authorization header to something else (e.g. x-client-authorization) and update the Express app to check that header instead (untested whether the original
75
+
// Authorization header is available at that point). Alternatively, you could simply use a different on the client, but this is moving the problem to the client.
76
+
// If you want to try OAC anyway, uncomment the below lines and change the Lambda Function URL authType from FunctionUrlAuthType.NONE to FunctionUrlAuthType.AWS_IAM
0 commit comments