CORS issue in Umbraco 10.1 with Vertica Umbraco Headless
Hi,
I'm desperately trying to figure out how to fetch data from an Umbraco 10.1 with the Vertica Umbraco Headless plugin installed.
All data is showing nicely as JSON thanks to the Vertica plugin, but any attempt to fetch data from another localhost installation (Sveltekit) is stopped because of missing CORS-header 'Access-Control-Allow-Origin'.
I've tried to follow the instructions from the post "Enable cors on Umbraco 9", (https://our.umbraco.com/forum/umbraco-9/106433-enable-cors-on-umbraco-9), but unfortunately not having the desired breakthrough.
So I'm hoping that any of you can help me out. I'm running the Umbraco 10.1 in Visual Code.
CORS issue in Umbraco 10.1 with Vertica Umbraco Headless
Hi,
I'm desperately trying to figure out how to fetch data from an Umbraco 10.1 with the Vertica Umbraco Headless plugin installed.
All data is showing nicely as JSON thanks to the Vertica plugin, but any attempt to fetch data from another localhost installation (Sveltekit) is stopped because of missing CORS-header 'Access-Control-Allow-Origin'.
I've tried to follow the instructions from the post "Enable cors on Umbraco 9", (https://our.umbraco.com/forum/umbraco-9/106433-enable-cors-on-umbraco-9), but unfortunately not having the desired breakthrough.
So I'm hoping that any of you can help me out. I'm running the Umbraco 10.1 in Visual Code.
Thanks.
/Søren
After searching further I found a very good solution in this thread:
https://our.umbraco.com/forum/using-umbraco-and-getting-started/108573-how-to-add-header-with-access-control-allow-origin-star-in-umbraco-9
/Søren
is working on a reply...