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.
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.
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
I also have this issue, just updated to 6.1.6 and can't add hostname.
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?
David,
Its in the database table umbracoDomains
Regards
Ismial
Yes I found it, thanks. Guessing this error does not occur in later versions.
I get the same, has this been logged on the bug tracker to be fixed? I had to modify mine using the database.
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.
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)
Rene
Same in 6.1.6.
Did anyone find the cause of this?
Cheers
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
>
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.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
I registerted routes with different prefix (appapi) and have a request with appapi: .../appapi/DomainsApi?action=/SaveLanguageAndDomains
I hit this error myself.
My problem was having registered the webapi route manually like this in my OWIN startup.
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
to
is working on a reply...