Starts in:
0 DAY
10 HRS
52 MIN
12 SEC
Starts in:
0 D
10 H
52 M
12 S
Open Closed

Can not allow HTTP API request for certain url #4946


User avatar
0
lan.dang created
  • ABP Framework version: v7.0.3
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): MVC
  • Exception message and stack trace:
  • Steps to reproduce the issue:" When I deploy my app via Azure portal using swap slot, Azure will send HTTP request to slot but our system does not allow HTTP request. I read this document about this error https://haacked.com/archive/2020/09/28/azure-swap-with-warmup-aspnetcore/

But comment this line does not work app.UseHttpsRedirection(); I also try to disable this one Configure<OpenIddictServerAspNetCoreOptions>(options => { options.DisableTransportSecurityRequirement = true; });

I tested with Postman, HTTPS request will respone 200 but HTTP request does not respone anything. What should I do to enable HTTP request?


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can try:

    PreConfigure<OpenIddictBuilder>(builder =>
    {
        .....
        builder.AddServer().UseAspNetCore().DisableTransportSecurityRequirement();
    });
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06