admin.appserverAppserverGetEnableHstsHeader( config as element(configuration), appserver-id as (Number|String) ) as Boolean
This function returns true if the specified App Server is configured to include HSTS header in HTTPS response. Otherwise, it returns false.
http://marklogic.com/xdmp/privileges/admin/app-server-security
http://marklogic.com/xdmp/privileges/admin/app-server-security/{id}
http://marklogic.com/xdmp/privileges/admin/group-security
http://marklogic.com/xdmp/privileges/admin/group-security/{id}
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() var groupid = admin.groupGetId(config, "Default") admin.appserverGetEnableHstsHeader(config, admin.appserverGetId(config, groupid, "myAppServer"))