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?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Hi,

    You can try:

    PreConfigure<OpenIddictBuilder>(builder =>
    {
        .....
        builder.AddServer().UseAspNetCore().DisableTransportSecurityRequirement();
    });
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.