Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Feb 18, 2014 @ 12:57
    Ismail Mayat
    0

    cannot update culture and host names

    Using umbraco 6.1.6 when i try to save update to culture and hostnames i get the following error in chrome inspector

    /umbraco/Api/DomainsApi/SaveLanguageAndDomains 401 (Unauthorized)

    Any ideas? I am logged in so whats the issue?

    Regards

    Ismail

  • David W. 159 posts 284 karma points c-trib
    Feb 25, 2014 @ 18:27
    David W.
    0

    I also have this issue, just updated to 6.1.6 and can't add hostname.

  • David W. 159 posts 284 karma points c-trib
    Feb 25, 2014 @ 18:33
    David W.
    0

    Looking for a way to somehow change this manually as current hostnames is obsolete. Where in db can I change? Or is it a file on disc?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 11, 2014 @ 13:09
    Ismail Mayat
    1

    David,

    Its in the database table umbracoDomains

    Regards

    Ismial

  • David W. 159 posts 284 karma points c-trib
    Mar 11, 2014 @ 13:17
    David W.
    0

    Yes I found it, thanks. Guessing this error does not occur in later versions.

  • David Freitas 10 posts 31 karma points
    Mar 18, 2014 @ 00:57
    David Freitas
    0

    I get the same, has this been logged on the bug tracker to be fixed? I had to modify mine using the database.

  • David Freitas 10 posts 31 karma points
    Mar 18, 2014 @ 01:53
    David Freitas
    0

    Actually, I think the error is because the ajax request sends a lot more cookies than the normal pages. I think this is related to the "Authentication Cookie Domain" setting, i.e. I was trying to move to a lower subdomain, but the authentication cookie was set to a higher domain, so it was obviously using the wrong cookie for the ajax request to save the new Domain value.
    This is tricky, but should probably be mentioned in the error message.

  • René 327 posts 852 karma points
    Apr 02, 2014 @ 22:42
    René
    0

    Hi 

    I got the same issue on umbraco 6.1.6, i cant save "culture and domainname"

    Any solution for this, other than update the database manally. 

    I got this error: Failed to load resource: the server responded with a status of 401 (Unauthorized)

    1. Request URL:
    2. Request Method:
      POST
    3. Status Code:
       
      401 Unauthorized

    Rene

  • Scott Anderson 18 posts 51 karma points
    Sep 21, 2014 @ 11:33
    Scott Anderson
    0

    Same in 6.1.6.

    Did anyone find the cause of this?

    Cheers

  • Stefan van Leusden 21 posts 73 karma points
    Apr 14, 2015 @ 11:52
    Stefan van Leusden
    0

    For all who is still struggling with this issue:

    Delete clientIDMode="AutoID" from the line below in the web.config file.

    <pages enableEventValidation="false" controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"></pages>

     

  • Alex Burr 77 posts 128 karma points
    Jun 21, 2015 @ 01:25
    Alex Burr
    0

    Has anyone had any luck with this? I have suddenly started having this problem after adding many different sites and hostnames in the past. Umbraco has not been updated and the correct version is in web.config. No errors are shown in the log table and there is nothing in the tracelog. I also see the message {"Message":"Authorization has been denied for this request."} and it's becoming a strange problem.

  • Abdul Rahim 21 posts 83 karma points
    Jul 22, 2015 @ 03:57
    Abdul Rahim
    0

    Hi Alex

    Did you get any solution for the above message. I have same issue when change culture and host names.

    {"Message":"Authorization has been denied for this request."}

    Thanks

  • slava 9 posts 29 karma points
    Aug 26, 2015 @ 08:43
    slava
    0

    I registerted routes with different prefix (appapi) and have a request with appapi: .../appapi/DomainsApi?action=/SaveLanguageAndDomains

  • Rasmus Østergård 19 posts 81 karma points c-trib
    May 17, 2016 @ 09:45
    Rasmus Østergård
    0

    I hit this error myself.

    My problem was having registered the webapi route manually like this in my OWIN startup.

    // register default api route
    GlobalConfiguration.Configuration.Routes.MapHttpRoute(
        name: "DefaultApi",
        routeTemplate: "api/{controller}/{action}/{id}",
        defaults: new { id = RouteParameter.Optional }
    );
    

    Apparently this will cause umbraco to behave the way described above.

    My solution was to remove the owin registration and cave in and conform to the setup recommended by umbraco: https://our.umbraco.org/documentation/reference/routing/webapi/

    And there by changing my api urls from

    mysite.com/api/products/all
    

    to

    mysite.com/umbraco/api/products/all
    
Please Sign in or register to post replies

Write your reply to:

Draft