turbot/net_insights
GitHub

Query: security_headers_content_security_policy_check

Usage

steampipe query net_insights.query.security_headers_content_security_policy_check

Plugins & Tables

SQL

select
case
when response_headers -> 'Content-Security-Policy' is not null then 'Present'
else 'Missing'
end as value,
case
when response_headers -> 'Content-Security-Policy' is not null then 'ok'
else 'alert'
end as type,
'Content-Security-Policy' as label
from
net_http_request
where
url = $1;

Params

ArgsNameDefaultDescriptionVariable
$1website_url_input

    Dashboards

    The query is used in the dashboards: