# This server only accepts HTTPS requests ID2083

**URL:** <https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816>\
**Category:** Questions\
**Tags:** v15\
**Created:** [April 14, 2025, 4:21pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816 "2025-04-14T16:21:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![GerardoGala](https://forum.umbraco.com/user_avatar/forum.umbraco.com/gerardogala/32/1456_2.png) [@GerardoGala](https://forum.umbraco.com/u/GerardoGala)\
**Post date:** [April 14, 2025, 4:21pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/1 "2025-04-14T16:21:29Z")

</div>

error:invalid\_request  
error\_description:This server only accepts HTTPS requests.  
error\_uri:[https://documentation.openiddict.com/errors/ID2083](https://documentation.openiddict.com/errors/ID2083)

I’ve tried pretty much all the suggested solutions on the web and I still get this error.

I can get rid of this error by starting a fresh install of Umbraco15 on the server ([SmarterASP.net](http://SmarterASP.net)).

As soon as I start publishing my website to [SmarterASP.net](http://SmarterASP.net) either by FTP or WebDeploy. I get this error when accessing the backend. I get the error on both Google browser on Windows and android.

Thanks!

---

<div class="post-metadata">

**Author:** ![GerardoGala](https://forum.umbraco.com/user_avatar/forum.umbraco.com/gerardogala/32/1456_2.png) [@GerardoGala](https://forum.umbraco.com/u/GerardoGala)\
**Post date:** [April 24, 2025, 11:39pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/2 "2025-04-24T23:39:49Z")

</div>

I was able to fix this issue by modifying the appsettings.json and adding these lines:

```
  "WebRouting": {
    "UmbracoApplicationUrl": "https://localhost:44341/"
  }

```

---

<div class="post-metadata">

**Author:** ![gregor-tusar-sowa](https://forum.umbraco.com/user_avatar/forum.umbraco.com/gregor-tusar-sowa/32/785_2.png) [@gregor-tusar-sowa](https://forum.umbraco.com/u/gregor-tusar-sowa)\
**Post date:** [January 19, 2026, 12:11pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/3 "2026-01-19T12:11:18Z")

</div>

I was having this issue on loadbalanced environment where the SSL termintaion happened on the reverse proxy.  
I had to disable [UseHttps](https://docs.umbraco.com/umbraco-cms/reference/security/ssl-https#set-usehttps-configuration-option)

```json
{
    "Umbraco": {
        "CMS": {
            "Global": {
                "UseHttps": false
            }
        }
    }
}

```

This information is missing in the [Umbraco Docs about HTTPS in Running in Docker](https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/running-umbraco-in-docker#https)

---

<div class="post-metadata">

**Author:** ![Saeve](https://forum.umbraco.com/user_avatar/forum.umbraco.com/saeve/32/405_2.png) [@Saeve](https://forum.umbraco.com/u/Saeve)\
**Post date:** [January 21, 2026, 1:05pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/4 "2026-01-21T13:05:27Z")

</div>

Hey there 🙂

I just quickly wanna chime in here about disabling HTTPS.  
It should not really be necessary if you configure your application with the correct handling of forwarded headers.

Umbraco can work just fine behind a loadbalancer and still have all the best practice security settings enabled.

Here’s an example:

```csharp
// Umbraco 17+ / .NET 10+
// Program.cs

var builder = WebApplication.CreateBuilder(args);

// Forward headers needed to pass information from the reverse proxy to the application
builder.Services.Configure<ForwardedHeadersOptions>(options =>
{
    options.ForwardedHeaders =
        ForwardedHeaders.XForwardedFor |
        ForwardedHeaders.XForwardedProto |
        ForwardedHeaders.XForwardedHost;

    var address = System.Net.IPAddress.Parse(127.0.0.1);
    var ipNetwork = new System.Net.IPNetwork(address, 32);
    options.KnownIPNetworks.Add(ipNetwork);
});

builder.CreateUmbracoBuilder()
    .AddBackOffice()
    .AddWebsite()
    .AddComposers()
    .Build();

var app = builder.Build();

await app.BootUmbracoAsync();

// This is needed to forward the headers from the reverse proxy to the application
app.UseForwardedHeaders();

app.UseUmbraco()
    .WithMiddleware(u =>
    {
        u.UseBackOffice();
        u.UseWebsite();
    })
    .WithEndpoints(u =>
    {
        u.UseBackOfficeEndpoints();
        u.UseWebsiteEndpoints();
    });

```

For Umbraco version lower then 17 and .NET 9 and down you have to alter then implementation just a bit:

```csharp
// 17 up
    var address = System.Net.IPAddress.Parse(127.0.0.1);
    var ipNetwork = new System.Net.IPNetwork(address, 32);
    options.KnownIPNetworks.Add(ipNetwork);

// Below 17
    var address = System.Net.IPAddress.Parse(127.0.0.1);
    var ipNetwork = new IPNetwork(address, 32);
    options.KnownNetworks.Add(ipNetwork);

```

More info on the Microsoft docs:  
[https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-10.0](https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-10.0)

---

<div class="post-metadata">

**Author:** ![djalfe](https://forum.umbraco.com/user_avatar/forum.umbraco.com/djalfe/32/3690_2.png) [@djalfe](https://forum.umbraco.com/u/djalfe)\
**Post date:** [March 3, 2026, 8:22am UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/5 "2026-03-03T08:22:40Z")

</div>

Hi everyone,

I am struggling with a **Umbraco 17** site deployed to IIS. The frontend works, but the backoffice login fails due to protocol issues.

**The Problem:**  
When logging into the backoffice, I get the error:  
_`error_description: This server only accepts HTTPS requests. error_uri: https://documentation.openiddict.com`_

The site only works if I set `"UseHttps": false` in `appsettings.json`, which is not an option for production.

**My Setup & Deployment:**

- **Umbraco Version:** 17

- **Infrastructure:** Hosted behind an **IIS ARR (Application Request Routing)** Proxy. SSL termination happens at the proxy, and requests are forwarded to the web server via HTTP.

- **Deployment Process:** I publish using `dotnet publish -c Release -r win-x64 --self-contained false`.

- **Database:** I manually copy the SQLite database. **I have already manually updated `PostLogoutRedirectUris` and `RedirectUris` in the database** to match the correct public domain, but the error persists.

- **IIS:** AppPool is set to “No Managed Code” / Integrated.

**The Challenge:**  
Even though the URIs in the database are correct, OpenIddict seems to reject the login because it perceives the incoming forwarded request as insecure HTTP instead of HTTPS.

**My Questions:**

1. How do I correctly configure the **Forwarded Headers Middleware** in Umbraco 17 to ensure OpenIddict respects the `X-Forwarded-Proto` header from the ARR proxy?

2. Are there any additional settings in `appsettings.json` (like `Umbraco:CMS:WebRouting:UmbracoApplicationUrl`) that are mandatory when the internal connection is HTTP?

3. Is there a specific way to tell OpenIddict in Umbraco 17 to allow the offloaded HTTPS connection or meaby correct it instead of doing it manual?

Any help or code snippets for `Program.cs` to handle this proxy scenario would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![JasonElkin](https://forum.umbraco.com/user_avatar/forum.umbraco.com/jasonelkin/32/133_2.png) [@JasonElkin](https://forum.umbraco.com/u/JasonElkin)\
**Post date:** [March 13, 2026, 11:07am UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/6 "2026-03-13T11:07:10Z")

</div>

> [@djalfe](#):
>
> if I set `"UseHttps": false` in `appsettings.json`, which is not an option for production.

That doesn’t have to be a problem, since you can mitigate any risk in IIS.

Assuming that you have SSL offloading switched on, you trust the load balancer and site(s) to talk to each other over plain HTTP (because trusted network?). In that case, you will need this setting disabled for Umbraco to accept requests from the ARR/proxy site.

So long as you configure IIS such that no other traffic can access the Umbraco site without using SSL (i.e. via routes that circumvent the load balancer) then that’s fine - your’e just delegating that security to IIS instead of Umbraco.

Alternatively make sure that you don’t have SSL offloading enabled, or at least use an HTTPS connection between the load balancer and site(s).

There is a performance consideration, which I’m not sure about when using ARR with IIS, and that’s how HTTP2 factors in. In other scenarios where I’ve used HTTPS, which enables HTTP2 communication between the load balancer and load balanced sites, it has meant improved performance. It would be worth testing and seeing what the performance difference is.

---

<div class="post-metadata">

**Author:** ![Luuk](https://forum.umbraco.com/user_avatar/forum.umbraco.com/luuk/32/4446_2.png) [@Luuk](https://forum.umbraco.com/u/Luuk)\
**Post date:** [March 13, 2026, 11:50am UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/7 "2026-03-13T11:50:07Z")

</div>

If you are running in production mode, you may need to disable the runtime check that checks if UseHttp is set to true:

`builder.RuntimeModeValidators().Remove<`UseHttpsValidator`>();`

---

<div class="post-metadata">

**Author:** ![JasonElkin](https://forum.umbraco.com/user_avatar/forum.umbraco.com/jasonelkin/32/133_2.png) [@JasonElkin](https://forum.umbraco.com/u/JasonElkin)\
**Post date:** [March 13, 2026, 7:01pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/8 "2026-03-13T19:01:30Z")

</div>

Good point! I completely forgot about the runtime production mode.

---

<div class="post-metadata">

**Author:** ![mirkomaty](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mirkomaty/32/5131_2.png) [@mirkomaty](https://forum.umbraco.com/u/mirkomaty)\
**Post date:** [April 11, 2026, 12:31pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/9 "2026-04-11T12:31:20Z")

</div>

I tried your solution but it doesn’t change anything. Maybe I have a wrong order? This is my code:  
`var umbracoBuilder = builder.CreateUmbracoBuilder()`  
`	.AddBackOffice()`  
`	.AddWebsite()`  
`	.AddComposers()`  
`	.Add...;`  
`umbracoBuilder.RuntimeModeValidators().Remove<UseHttpsValidator>();`  
`...`  
`umbracoBuilder.Build();`  
Can you see any problem here?

---

<div class="post-metadata">

**Author:** ![mirkomaty](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mirkomaty/32/5131_2.png) [@mirkomaty](https://forum.umbraco.com/u/mirkomaty)\
**Post date:** [April 11, 2026, 12:41pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/10 "2026-04-11T12:41:19Z")

</div>

@Saeve : Did you ever try this with an Umbraco 17 Site? This code doesn’t change anything. My Nginx settings forward the protocol, scheme, and host:  
`proxy_set_header Host $host;`  
`proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;`  
`proxy_set_header X-Forwarded-Proto $scheme;`

---

<div class="post-metadata">

**Author:** ![Saeve](https://forum.umbraco.com/user_avatar/forum.umbraco.com/saeve/32/405_2.png) [@Saeve](https://forum.umbraco.com/u/Saeve)\
**Post date:** [April 11, 2026, 1:22pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/11 "2026-04-11T13:22:52Z")

</div>

Hi @mirkomaty 🙂

Yes, I run my personal website on V17 behind a Traefik proxy and also a Varnish cache(for fun).  
I have no real issues with the forwarded headers on my setup.  
There’s nothing else really special about the setup and traffic to my backoffice domain is just passing trough Traefik.  
HTTPS and all other prod mode validators are enabled without any real issues.

Did you ensure that you added the allowed IP or Networks as I described in my initial guide?  
Aspnet does not accept forwarded headers from IPs that are not explicitly trusted.

---

<div class="post-metadata">

**Author:** ![mirkomaty](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mirkomaty/32/5131_2.png) [@mirkomaty](https://forum.umbraco.com/u/mirkomaty)\
**Post date:** [April 11, 2026, 4:22pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/12 "2026-04-11T16:22:44Z")

</div>

Hi @Saeve , thanks a lot for your reply. I managed getting a step further with following the instructions [at the greenstack site](https://umbhost.net/eu/blog/2026/01/getting-started-with-umbraco-17-on-greenstack-with-github) (1.1…1.3). The first instruction is similar to your solution. After that I had the problem, that I got a 502 after successful login. I could manage it with bigger buffer settings in Nginx. The backoffice is now usable.

---

<div class="post-metadata">

**Author:** ![Saeve](https://forum.umbraco.com/user_avatar/forum.umbraco.com/saeve/32/405_2.png) [@Saeve](https://forum.umbraco.com/u/Saeve)\
**Post date:** [April 11, 2026, 7:27pm UTC](https://forum.umbraco.com/t/this-server-only-accepts-https-requests-id2083/2816/13 "2026-04-11T19:27:25Z")

</div>

Hi @mirkomaty 🙂

Good to hear you got it to a working state!

Pretty sure that what they describe in the post is not best practice.  
I can only see this as a valid case if you would never be able to know the CIDR or IP for your LB/Proxy.  
This case I would personally find a bit of an edge case, but could be valid.  
Aspnet can run in HTTP mode for Kestrel but still understand that it’s using HTTPS on the LB/Proxy.

Is your setup just NGINX → Umbraco and are you using Docker or hosting with IIS or something else?  
I would like to try and make a simple Umbraco setup with NGINX to test, since I suspect something is not configured correctly.

I’ve done basically nothing out of the ordinary to either Traefik or Umbraco to get this working.

 ![image](https://forum.umbraco.com/uploads/default/original/2X/5/5ef36375a9716c308fb00e8ecf99f512047d6895.jpeg)  
(Yes, I know I need to update, but Umbraco is not exposed and I’m lazy 😅)
