iframe related issues
Last updated
Was this helpful?
Was this helpful?
-add_header X-Frame-Options "DENY";
-add_header Content-Security-Policy "frame-ancestors 'none'";
+add_header Content-Security-Policy "frame-ancestors 'self'";map $query_string $add_content_security_policy {
"~*(?=.*\bstate=)(?=.*\bclient_id=)(?=.*\bresponse_type=)(?=.*\bredirect_uri=)" "frame-ancestors 'self'";
default "frame-ancestors 'none'";
}
add_header Content-Security-Policy $add_content_security_policy;