Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Carl Sjöholm 44 posts 327 karma points
    Oct 08, 2021 @ 07:27
    Carl Sjöholm
    0

    Umbraco Cloud ExcessiveHeaders for v9

    ExcessiveHeaders

    I have tried to follow this recommendation. Added both web.config to wwwroot and .UseKestrel in Umbraco Cloud.

    https://our.umbraco.com/documentation/Extending/Health-Check/Guides/ExcessiveHeaders

    .UseKestrel causes the app to crash = not starting up at all.

    .ConfigureKestrel(x => x.AddServerHeader = false)
    

    And above doesn't do anything it seems.

    Is there any other way to do this in Cloud för v9?

  • Carl Sjöholm 44 posts 327 karma points
    Oct 08, 2021 @ 07:37
    Carl Sjöholm
    0

    Ok.

    Moving web.config to the root of the project seems to remove the X-Powered-By - but not the Server header.

  • Carl Sjöholm 44 posts 327 karma points
    Oct 08, 2021 @ 08:08
    Carl Sjöholm
    100

    Tried

     app.Use(async (context, next) =>
            {
                context.Response.Headers.Remove("Server");
                await next();
            });
    

    Nothing.

    Cloudfare server header

    I'm guessing this one is out of my hands then?

Please Sign in or register to post replies

Write your reply to:

Draft