I have 2 domains with single app without authorization api.
When I call api with first domain – it’s working. But when I call api with second domain – I receive 401 error.
What I can do with that?
My Configuration:
public void Configure(
IApplicationBuilder app)
{
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseDeveloperExceptionPage();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseCookiePolicy();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
endpoints.MapRazorPages();
});
}
Thanks in advance for the answers
New contributor
Artem Lemeshev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2