Selenium centos中的firefox设置csp标头无效

Selenium centos中的firefox设置csp标头无效,selenium,selenium-webdriver,firefox,content-security-policy,selenium-firefoxdriver,Selenium,Selenium Webdriver,Firefox,Content Security Policy,Selenium Firefoxdriver,我尝试加入csp头,以响应firefox通过代理访问的每个请求,但没有csp报告发送,并尝试在mac firefox中执行相同的操作(相同的代码),程序运行没有问题,我接收csp报告,因此我认为这可能是centos中firefox的问题 这是我的环境,通过yum安装firefox,代码使用selenium操作firefox并使用browsermob在响应中添加csp头,在代码结果中csp头已经添加到响应中,firefox处于headless模式 centos 7 firefox.x86_64

我尝试加入csp头,以响应firefox通过代理访问的每个请求,但没有csp报告发送,并尝试在mac firefox中执行相同的操作(相同的代码),程序运行没有问题,我接收csp报告,因此我认为这可能是centos中firefox的问题

这是我的环境,通过yum安装firefox,代码使用selenium操作firefox并使用browsermob在响应中添加csp头,在代码结果中csp头已经添加到响应中,firefox处于headless模式

centos 7
firefox.x86_64                            68.5.0-2.el7.centos     @update
firefox.i686                              68.5.0-2.el7.centos     update
firefox-noscript.noarch                   11.0.3-3.el7            epel
firefox-pkcs11-loader.x86_64              3.13.4-1.el7            epel
这是我的csp规则

Content-Security-Policy-Report-Only: script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; media-src 'none'; object-src 'none'; child-src 'none'; frame-src 'none'; worker-src 'none'; worker-src 'none'; worker-src 'none'; base-uri 'none'; manifest-src 'none'; report-uri http://www.test.com
我使用它来记录csp报告,并使用此报告为web创建csp规则


有没有办法解决这个问题

更新firefox版本,测试v74.0是否正常工作

yum版本为旧版,由此版本在centos 7中安装

cd /usr/local
wget https://ftp.mozilla.org/pub/firefox/releases/74.0/linux-x86_64/zh-CN/firefox-74.0.tar.bz2
tar xvjf firefox-74.0.tar.bz2
yum -y install gtk3-devel
yum install libXt*
ln -s /usr/local/firefox/firefox /usr/bin/firefox