(fix) quick fix, temporarily remove script.crossOrigin, it breaks publift

Access to script at 'https://…/fuse.js' from origin 'https://en.pronouns.page' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
This commit is contained in:
Andrea Vos 2024-03-13 08:22:50 +01:00
parent eb9151112a
commit c56c59abf1

View File

@ -98,7 +98,7 @@ export default ({ app, store }: { app: Vue, store: Store<RootState> }): void =>
script.setAttribute('nonce', nonce);
}
script.classList.add(`${name}-script`);
script.crossOrigin = 'true';
// script.crossOrigin = 'true'; TODO proper fix (adding it breaks publift)
script.addEventListener('load', () => resolve());
script.addEventListener('error', (event) => {
reject(new LoadScriptError(name, src, typeof event === 'string' ? event : event.type));