diff --git a/src/csp.ts b/src/csp.ts index 285c62d9f..375a0170b 100644 --- a/src/csp.ts +++ b/src/csp.ts @@ -14,6 +14,7 @@ const vimeoCdn = '*.vimeocdn.com'; // used for video preview images const hotjarCom = '*.hotjar.com'; const hotjarIo = '*.hotjar.io'; const taskAnalytics = '*.taskanalytics.com'; +const googleStorage = 'storage.googleapis.com'; const styleSrc = [ navNo, @@ -51,7 +52,7 @@ const directives: Partial = { cdnNavNo, DATA, // ds-css ], - 'img-src': [navNo, vergicScreenSharing, vimeoCdn, hotjarCom, vergicDotCom], + 'img-src': [navNo, vergicScreenSharing, vimeoCdn, hotjarCom, vergicDotCom, googleStorage], 'frame-src': [hotjarCom, vimeoPlayer, qbrick], 'connect-src': [navNo, boostChatbot, vergicScreenSharing, hotjarCom, hotjarIo, taskAnalytics], }; diff --git a/src/komponenter/footer/chatbot/ChatbotWrapper.tsx b/src/komponenter/footer/chatbot/ChatbotWrapper.tsx index 760a51d23..92ca66e1b 100644 --- a/src/komponenter/footer/chatbot/ChatbotWrapper.tsx +++ b/src/komponenter/footer/chatbot/ChatbotWrapper.tsx @@ -116,6 +116,9 @@ export const ChatbotWrapper = () => { domain: isProduction ? '.nav.no' : '.dev.nav.no', }); }); + boost.chatPanel.addEventListener('setFilterValue', function (ev: any) { + boost.chatPanel.setFilterValues(ev.detail.filterValue); + }); if (bufferLoad) { setBufferLoad(false);