Bjarne Fyrstenborg
12/15/2023, 8:53 AM/umbraco
backoffice URL.
https://docs.umbraco.com/umbraco-cloud/set-up/project-settings/manage-hostnames/rewrites-on-cloud
However in a multi-site with several domains it cause issues with preview from within backoffice, because in preview frontend in backoffice and the frontend is redirected.
This is fine on the actual domain, e.g. mydomain.com and logged in on mydomain.com/umbraco
However if logged in on https://project-alias.euwest01.umbraco.io/umbraco and preview it will cause the following error:
Refused to display 'https://www.mydomain.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
https://github.com/umbraco/UmbracoDocs/pull/5662
I think .NET Core by default is configured to only allow same origin but it is possible to setup CORS to render content from other domains.
It is of course possible to log into backoffice from actual domain, but often content editors have access to edit 10 different sites, so I understand it is simpler to content editors to work from one preferred domain, e.g. the Umbraco Cloud URL or the main domain or just one or the site domains.
Are the any recommended way to handle this?
Maybe something like this?
https://stackoverflow.com/a/31942128
https://www.bytehide.com/blog/cors-aspnet-coreBjarne Fyrstenborg
12/15/2023, 8:56 AMBjarne Fyrstenborg
01/03/2024, 12:12 PM/umbraco
at Umbraco Cloud URL) for each site.A hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by