I know this should be basic but I will despair on this if no one helps me.
I want to get a Signin Token from AWS Federation. This is possible when you call the link:
https://signin.aws.amazon.com/federation?Action=getSigninToken&Session={encodedSession}
Now when I try to fetch it (based on the example codes on the AWS documentation) with this code
await fetch(
"https://signin.aws.amazon.com/federation?Action=getSigninToken&" +
qs.stringify({
Session: JSON.stringify({
sessionId: data["accessKey"],
sessionKey: data["secretKey"],
sessionToken: data["sessionToken"]
})
})
it will fail with a CORS error. Even in 'no-cors' mode (I know this is bad) the CORB is blocking everything. How can i fix this?
This all is within a React component!
Edit: Here is the error