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
We get multiple errors in our app using useSigV4Client
useSigV4Client
The error is Refused to set unsafe header "host" on every request.
Refused to set unsafe header "host"
It stems from this line of code:
https://github.com/aws/aws-northstar/blob/main/packages/ui/src/components/CognitoAuth/hooks/useSigv4Client/utils/awsSigv4Fetch/index.ts#L59
We have monkey patched this by adding delete signedRequest.headers['host'], which seems very unsafe. Is there a better solution?
delete signedRequest.headers['host']
Thank you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We get multiple errors in our app using
useSigV4Client
The error is
Refused to set unsafe header "host"
on every request.It stems from this line of code:
https://github.com/aws/aws-northstar/blob/main/packages/ui/src/components/CognitoAuth/hooks/useSigv4Client/utils/awsSigv4Fetch/index.ts#L59
We have monkey patched this by adding
delete signedRequest.headers['host']
, which seems very unsafe. Is there a better solution?Thank you.
The text was updated successfully, but these errors were encountered: