diff --git a/webapp/channels/src/components/onlyoffice_preview.tsx b/webapp/channels/src/components/onlyoffice_preview.tsx index 958260bba1..300e988f4f 100644 --- a/webapp/channels/src/components/onlyoffice_preview.tsx +++ b/webapp/channels/src/components/onlyoffice_preview.tsx @@ -39,7 +39,7 @@ class OnlyofficePreview extends React.PureComponent { this.placeholderId = 'onlyoffice-placeholder'; this.scriptId = 'onlyoffice-script'; - this.scriptSrc = 'https://documentserver.kdrive.infomaniak.com/web-apps/apps/api/documents/api.js'; + this.scriptSrc = 'https://onlyoffice.infomaniak.com/web-apps/apps/api/documents/api.js'; this.container = React.createRef(); } diff --git a/webapp/channels/webpack.config.js b/webapp/channels/webpack.config.js index 619697e532..c60fb2c2a6 100644 --- a/webapp/channels/webpack.config.js +++ b/webapp/channels/webpack.config.js @@ -337,7 +337,7 @@ var config = { }; function generateCSP() { - let csp = 'script-src \'self\' blob: cdn.rudderlabs.com/ js.stripe.com/v3 web-components.storage.infomaniak.com/ welcome.infomaniak.com/ welcome.preprod.dev.infomaniak.ch/ kmeet.infomaniak.com/ welcome.preprod.dev.infomaniak.ch/ kmeet.preprod.dev.infomaniak.ch/ documentserver.kdrive.infomaniak.com/ ' + CSP_UNSAFE_INLINE + CSP_UNSAFE_EVAL_IF_DEV; + let csp = 'script-src \'self\' blob: cdn.rudderlabs.com/ js.stripe.com/v3 web-components.storage.infomaniak.com/ welcome.infomaniak.com/ welcome.preprod.dev.infomaniak.ch/ kmeet.infomaniak.com/ welcome.preprod.dev.infomaniak.ch/ kmeet.preprod.dev.infomaniak.ch/ onlyoffice.infomaniak.com/ ' + CSP_UNSAFE_INLINE + CSP_UNSAFE_EVAL_IF_DEV; if (IS_CANARY || IS_PREPROD) { csp += CSP_WORKER_SRC;