horrible and hacky attempt to access securityPolicy