mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(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:
parent
eb9151112a
commit
c56c59abf1
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user