When iam trying to access one of the asp.net core application controller view from react application, In the browser console iam getting eror like
'Refused to display 'http://localhost:1212/Account/Login/?ReturnUrl=%Home%MyIFrame%3url%TestData' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
'
since i am decorated action method with [Authorize] attribute
In startup.cs
file was included
Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory){
app.UseCors(
options => options
.WithOrigins(
"http://localhost:3000",
)
.AllowAnyMethod()
.AllowAnyHeader()
);
}