I'm trying to create a template page for Azure ADB2C using Nuxt3. The HTML is requested by Azure and the authentication form is injected in a specific
<div>
<div>
. This is not working because of CORS errors as page and its static assets do not belong to the same domain as AD.
I managed to add CORS headers to the HTML request, but I can't figure how to add such headers to bundle assets (CSS and JS). Nitro server handlers (maybe registered too late ?) and it hooks like