diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 15d98726a..9239578b8 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -2108,7 +2108,7 @@ var httpObserver = { return; } - if ( result.responseHeaders ) { + if ( result.responseHeaders && result.responseHeaders.length ) { channel.setResponseHeader( 'Content-Security-Policy', result.responseHeaders.pop().value,