Packages in the Developer section of the backend wont load. Get a CORS error message.
Access to XMLHttpRequest at 'https://our.umbraco.org/webapi/packages/v1' from origin 'XXX' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I've added the "Access-Control-Allow-Origin" policy in the web.config file but it's not working, get the same message. Do I have to download any of the CORS nuget for this to work? If so wich one as there are mutliple.
"Access-Control-Allow-Origin" means that the endpoint you are trying to hit has incorrect CORS configured (as far as i know), so it's an error on Umbraco's side.
I am receiving the following response on the preflight check from an umbraco 8.13, so seems alright to me, this is in chrome and it is usually very difficult about CORS
I can't seem to be able to spin up a 7.11.1 version (must not have the correct .net framework installed). Is there a reason why you are working in such an old version of umbraco? (released 26/06/2018)
Well, I'm not working with the site full time. The time it takes to make sure the upgrade works as expected and nothing has broken on the way has left me behind I'm afraid.
CORS in Umbraco backoffice
Hi,
Packages in the Developer section of the backend wont load. Get a CORS error message.
Access to XMLHttpRequest at 'https://our.umbraco.org/webapi/packages/v1' from origin 'XXX' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I've added the "Access-Control-Allow-Origin" policy in the web.config file but it's not working, get the same message. Do I have to download any of the CORS nuget for this to work? If so wich one as there are mutliple.
/ Cheers
"Access-Control-Allow-Origin" means that the endpoint you are trying to hit has incorrect CORS configured (as far as i know), so it's an error on Umbraco's side.
I was thinking the same but I find this a bit strange. Surely I would not be the only one having the same issue... :)
What version of umbraco are you running?
7.11.1
Let me spin one up quickly
I am receiving the following response on the preflight check from an umbraco 8.13, so seems alright to me, this is in chrome and it is usually very difficult about CORS
This is what I get:
and the request headers?
I can't seem to be able to spin up a 7.11.1 version (must not have the correct .net framework installed). Is there a reason why you are working in such an old version of umbraco? (released 26/06/2018)
I see.
Well, I'm not working with the site full time. The time it takes to make sure the upgrade works as expected and nothing has broken on the way has left me behind I'm afraid.
Yeah, it seems that whatever library/configuration Umbraco used in 7.11.1 to make that api request does not send the correct headers.
Maybe it's time to remake the site in a newer version and enjoy security updates again? Umbraco 9 is coming out soon ;)
Hi, do u got the solution for this, as I am also facing same issue..
is working on a reply...