i已集成了keycloack中用户寄存器的重新计算,当它加载recaptchadiv时未显示。一段时间后,它在Chrome控制台中给出以下超时错误。
www.gstatic.com/:1 Refused to frame 'https://www.google.com/' because it violates the following Content Security Policy directive: "frame-src 'self'".
registrations?client_id=my-service&redirect_uri=http.......&response_mode=fragment&response_type=code&scope=openid&nonce=........:1 Uncaught (in promise) Timeout
www.gstatic.com/:1 Refused to frame 'https://www.google.com/' because it violates the following Content Security Policy directive: "frame-src 'self'".
我在[https://issues.jboss.org/browse/keycloak-4584]中发现了此错误,但我不太清楚该问题是如何解决的。
有什么可能解决此问题的方法?
有官方手册进行recaptcha集成:https://www.keycloak.org/docs/4.8/server_admin/index.htex.html#_recaptcha
您可以通过转到Realm的管理员控制台配置Content-Security-Policy
admin
-> Realm Settings
-> Security Defenses
。