[英]How can I use an HTTPS client certificate protected api with Firefox
I have protected my staging environment with an HTTPS client certificate.我使用 HTTPS 客户端证书保护了我的暂存环境。 The site consists of multiple subdomains rest.site.com, files.site.com, site.com, etc.
该站点由多个子域rest.site.com、files.site.com、site.com等组成。
Everyone has the same certificate.每个人都有相同的证书。
The problem is that firefox doesn't send a client certificate with cors preflight requests.问题是 firefox 没有发送带有 cors 预检请求的客户端证书。 Which means those request will inevitably always fail and so firefox refuses to access the api at all.
这意味着这些请求将不可避免地总是失败,因此 firefox 根本拒绝访问 api。
So is there a way to force firefox to send the certificate with the preflight request?那么有没有办法强制 firefox 发送带有预检请求的证书?
about:config
about:config
network.cors_preflight.allow_client_cert
network.cors_preflight.allow_client_cert
true
true
client certs will now be sent with preflight requests客户端证书现在将与预检请求一起发送
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.