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
I am sending requests from Firefox to a Lambda Function URL and everything is fine in chrome, but when using Firefox i get this error The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
After breaking it down i figured out that firefox sends a TE header and chrome doesn't. And after playing around in a script i can confirm that this is the only issue.
letrequest={host: '<HOST>',method: 'POST',url: `<URL>`,data: body,body: JSON.stringify(body),path: `<PATH>`,headers: {'content-type': 'application/json','TE': 'trailers',// comment this line out to make it work},service: 'lambda',region: 'eu-central-1'}letsignedRequest=aws4.sign(request,{secretAccessKey: '<SECRET_ACCESS_KEY>',accessKeyId: '<ACCESS_KEY_ID>',sessionToken: '<SESSION_TOKEN>',})
I also tried this example in python with the same result, a mismatched signature.
Expected behavior
Send signature matches the calculated and the request is valid.
The text was updated successfully, but these errors were encountered:
Mi3-14159
changed the title
When provided a TE header the request signature does not match the calculated signature.
When provided a TE header the request signature does not match the calculated signature.
Jul 21, 2023
Description
I am sending requests from Firefox to a Lambda Function URL and everything is fine in chrome, but when using Firefox i get this error
The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
After breaking it down i figured out that firefox sends a
TE
header and chrome doesn't. And after playing around in a script i can confirm that this is the only issue.I also tried this example in python with the same result, a mismatched signature.
Expected behavior
Send signature matches the calculated and the request is valid.
The text was updated successfully, but these errors were encountered: