I am creating one POC to integrate the AWS cognito service on Blazor web assembly. Firstly i did configuration of aws cognito service on AWS portal. then I tested on asp.net core 5.0 integration.
It is working fine there. Now i m trying to configure same things on Blazor web assembly. It is not working. It is giving below exception
Refused to display 'URL of AWS Login page' in a frame because it set 'X-Frame-Options' to 'deny' in Blazor
I m doing like this in Blazor web assembly
Step 1: I m changing in Program file like this
// Configure your authentication provider options here.
// For more information, see https://aka.ms/blazor-standalone-auth
options.ProviderOptions.Authority = "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_8Mv8GuFCL/.well-known/openid-configuration";
options.ProviderOptions.ClientId = "1nu6k6dcopmlm7dp77jlko9s07";
options.ProviderOptions.ResponseType = "code";
options.ProviderOptions.RedirectUri = "https://localhost:44355/signin-oidc";
options.ProviderOptions.PostLogoutRedirectUri = "";
Step 2: Running the application, then i m getting on browser console
Refused to display 'https://mywebsite.auth.us-east-1.amazoncognito.com/login?client_id=1nu6k6dcopmlm7dp77jlko9s07&redirect_uri
in a frame because it set 'X-Frame-Options' to 'deny'
Have any one fixed this type of issue ? Any suggestion will be highly appreciated ?