How to integrate the AWS Congnito service with Blazor web assembly ?

Posted 47 days ago by chandraev
Edited 45 days ago

Hi All,

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 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

 builder.Services.AddOidcAuthentication(options =>


               // Configure your authentication provider options here.

               // For more information, see

               //builder.Configuration.Bind("Local", options.ProviderOptions);

               options.ProviderOptions.Authority = "";

               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 '



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 ? 


Someone is typing...

Post a Reply

You must be logged in to add a new post.
Number of online users: 0
An error has occurred. This application may no longer respond until reloaded. Reload 🗙