# secure > A lightweight package that adds security headers for Python web frameworks. ## Docs ### API Reference #### Classes > Main classes provided by the package - [Secure](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.html): Configure and apply HTTP security headers for web applications #### Dataclasses > Dataclass definitions - [CacheControl](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.html): Fluent builder for the `Cache-Control` HTTP header - [ContentSecurityPolicy](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.html): Fluent builder for the ``Content-Security-Policy`` HTTP response header - [CrossOriginEmbedderPolicy](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginEmbedderPolicy.html): Builder for the ``Cross-Origin-Embedder-Policy`` (COEP) HTTP response header - [CrossOriginOpenerPolicy](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginOpenerPolicy.html): Builder for the ``Cross-Origin-Opener-Policy`` (COOP) HTTP response header - [CrossOriginResourcePolicy](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginResourcePolicy.html): Builder for the ``Cross-Origin-Resource-Policy`` (CORP) HTTP response header - [CustomHeader](https://github.com/TypeError/secure/tree/main/docs/reference/CustomHeader.html): Wrapper for an arbitrary HTTP header - [PermissionsPolicy](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.html): Builder for the `Permissions-Policy` HTTP header - [ReferrerPolicy](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.html): Builder for the ``Referrer-Policy`` HTTP response header - [Server](https://github.com/TypeError/secure/tree/main/docs/reference/Server.html): Builder for the ``Server`` HTTP response header - [StrictTransportSecurity](https://github.com/TypeError/secure/tree/main/docs/reference/StrictTransportSecurity.html): Builder for the ``Strict-Transport-Security`` (HSTS) HTTP response header - [XContentTypeOptions](https://github.com/TypeError/secure/tree/main/docs/reference/XContentTypeOptions.html): Builder for the `X-Content-Type-Options` HTTP header - [XDnsPrefetchControl](https://github.com/TypeError/secure/tree/main/docs/reference/XDnsPrefetchControl.html): Builder for the non-standard `X-DNS-Prefetch-Control` HTTP header - [XFrameOptions](https://github.com/TypeError/secure/tree/main/docs/reference/XFrameOptions.html): Builder for the `X-Frame-Options` HTTP response header - [XPermittedCrossDomainPolicies](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.html): Builder for the `X-Permitted-Cross-Domain-Policies` HTTP response header #### StrictTransportSecurity Methods > Methods for the StrictTransportSecurity class - [StrictTransportSecurity.header_value](https://github.com/TypeError/secure/tree/main/docs/reference/StrictTransportSecurity.header_value.html) - [StrictTransportSecurity.clear](https://github.com/TypeError/secure/tree/main/docs/reference/StrictTransportSecurity.clear.html) - [StrictTransportSecurity.value](https://github.com/TypeError/secure/tree/main/docs/reference/StrictTransportSecurity.value.html) - [StrictTransportSecurity.max_age](https://github.com/TypeError/secure/tree/main/docs/reference/StrictTransportSecurity.max_age.html) - [StrictTransportSecurity.include_subdomains](https://github.com/TypeError/secure/tree/main/docs/reference/StrictTransportSecurity.include_subdomains.html) - [StrictTransportSecurity.preload](https://github.com/TypeError/secure/tree/main/docs/reference/StrictTransportSecurity.preload.html) #### Secure Methods > Methods for the Secure class - [Secure.with_default_headers](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.with_default_headers.html) - [Secure.from_preset](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.from_preset.html) - [Secure.__str__](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.__str__.html) - [Secure.__repr__](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.__repr__.html) - [Secure.validate_and_normalize_headers](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.validate_and_normalize_headers.html) - [Secure.deduplicate_headers](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.deduplicate_headers.html) - [Secure.allowlist_headers](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.allowlist_headers.html) - [Secure.header_items](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.header_items.html) - [Secure.set_headers](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.set_headers.html) - [Secure.set_headers_async](https://github.com/TypeError/secure/tree/main/docs/reference/Secure.set_headers_async.html) #### CacheControl Methods > Methods for the CacheControl class - [CacheControl.value](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.value.html) - [CacheControl.set](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.set.html) - [CacheControl.clear](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.clear.html) - [CacheControl.custom](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.custom.html) - [CacheControl.immutable](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.immutable.html) - [CacheControl.max_age](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.max_age.html) - [CacheControl.max_stale](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.max_stale.html) - [CacheControl.min_fresh](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.min_fresh.html) - [CacheControl.must_revalidate](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.must_revalidate.html) - [CacheControl.must_understand](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.must_understand.html) - [CacheControl.no_cache](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.no_cache.html) - [CacheControl.no_store](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.no_store.html) - [CacheControl.no_transform](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.no_transform.html) - [CacheControl.only_if_cached](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.only_if_cached.html) - [CacheControl.private](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.private.html) - [CacheControl.proxy_revalidate](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.proxy_revalidate.html) - [CacheControl.public](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.public.html) - [CacheControl.s_maxage](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.s_maxage.html) - [CacheControl.s_max_age](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.s_max_age.html) - [CacheControl.stale_if_error](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.stale_if_error.html) - [CacheControl.stale_while_revalidate](https://github.com/TypeError/secure/tree/main/docs/reference/CacheControl.stale_while_revalidate.html) #### ContentSecurityPolicy Methods > Methods for the ContentSecurityPolicy class - [ContentSecurityPolicy.value](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.value.html) - [ContentSecurityPolicy.set](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.set.html) - [ContentSecurityPolicy.clear](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.clear.html) - [ContentSecurityPolicy.report_only](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.report_only.html) - [ContentSecurityPolicy.enforce](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.enforce.html) - [ContentSecurityPolicy.custom](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.custom.html) - [ContentSecurityPolicy.custom_directive](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.custom_directive.html) - [ContentSecurityPolicy.base_uri](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.base_uri.html) - [ContentSecurityPolicy.block_all_mixed_content](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.block_all_mixed_content.html) - [ContentSecurityPolicy.child_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.child_src.html) - [ContentSecurityPolicy.connect_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.connect_src.html) - [ContentSecurityPolicy.default_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.default_src.html) - [ContentSecurityPolicy.fenced_frame_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.fenced_frame_src.html) - [ContentSecurityPolicy.font_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.font_src.html) - [ContentSecurityPolicy.form_action](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.form_action.html) - [ContentSecurityPolicy.frame_ancestors](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.frame_ancestors.html) - [ContentSecurityPolicy.frame_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.frame_src.html) - [ContentSecurityPolicy.img_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.img_src.html) - [ContentSecurityPolicy.manifest_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.manifest_src.html) - [ContentSecurityPolicy.media_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.media_src.html) - [ContentSecurityPolicy.object_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.object_src.html) - [ContentSecurityPolicy.prefetch_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.prefetch_src.html) - [ContentSecurityPolicy.report_to](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.report_to.html) - [ContentSecurityPolicy.report_uri](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.report_uri.html) - [ContentSecurityPolicy.require_trusted_types_for](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.require_trusted_types_for.html) - [ContentSecurityPolicy.sandbox](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.sandbox.html) - [ContentSecurityPolicy.script_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.script_src.html) - [ContentSecurityPolicy.script_src_attr](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.script_src_attr.html) - [ContentSecurityPolicy.script_src_elem](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.script_src_elem.html) - [ContentSecurityPolicy.style_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.style_src.html) - [ContentSecurityPolicy.style_src_attr](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.style_src_attr.html) - [ContentSecurityPolicy.style_src_elem](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.style_src_elem.html) - [ContentSecurityPolicy.trusted_types](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.trusted_types.html) - [ContentSecurityPolicy.upgrade_insecure_requests](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.upgrade_insecure_requests.html) - [ContentSecurityPolicy.worker_src](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.worker_src.html) - [ContentSecurityPolicy.keyword](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.keyword.html) - [ContentSecurityPolicy.nonce](https://github.com/TypeError/secure/tree/main/docs/reference/ContentSecurityPolicy.nonce.html) #### CrossOriginEmbedderPolicy Methods > Methods for the CrossOriginEmbedderPolicy class - [CrossOriginEmbedderPolicy.set](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginEmbedderPolicy.set.html) - [CrossOriginEmbedderPolicy.value](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginEmbedderPolicy.value.html) - [CrossOriginEmbedderPolicy.clear](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginEmbedderPolicy.clear.html) - [CrossOriginEmbedderPolicy.unsafe_none](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginEmbedderPolicy.unsafe_none.html) - [CrossOriginEmbedderPolicy.require_corp](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginEmbedderPolicy.require_corp.html) - [CrossOriginEmbedderPolicy.credentialless](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginEmbedderPolicy.credentialless.html) #### CrossOriginOpenerPolicy Methods > Methods for the CrossOriginOpenerPolicy class - [CrossOriginOpenerPolicy.value](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginOpenerPolicy.value.html) - [CrossOriginOpenerPolicy.custom](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginOpenerPolicy.custom.html) - [CrossOriginOpenerPolicy.set](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginOpenerPolicy.set.html) - [CrossOriginOpenerPolicy.clear](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginOpenerPolicy.clear.html) - [CrossOriginOpenerPolicy.unsafe_none](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginOpenerPolicy.unsafe_none.html) - [CrossOriginOpenerPolicy.same_origin_allow_popups](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginOpenerPolicy.same_origin_allow_popups.html) - [CrossOriginOpenerPolicy.same_origin](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginOpenerPolicy.same_origin.html) - [CrossOriginOpenerPolicy.noopener_allow_popups](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginOpenerPolicy.noopener_allow_popups.html) #### CrossOriginResourcePolicy Methods > Methods for the CrossOriginResourcePolicy class - [CrossOriginResourcePolicy.clear](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginResourcePolicy.clear.html) - [CrossOriginResourcePolicy.value](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginResourcePolicy.value.html) - [CrossOriginResourcePolicy.set](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginResourcePolicy.set.html) - [CrossOriginResourcePolicy.same_origin](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginResourcePolicy.same_origin.html) - [CrossOriginResourcePolicy.same_site](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginResourcePolicy.same_site.html) - [CrossOriginResourcePolicy.cross_origin](https://github.com/TypeError/secure/tree/main/docs/reference/CrossOriginResourcePolicy.cross_origin.html) #### PermissionsPolicy Methods > Methods for the PermissionsPolicy class - [PermissionsPolicy.value](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.value.html) - [PermissionsPolicy.set](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.set.html) - [PermissionsPolicy.clear](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.clear.html) - [PermissionsPolicy.add_directive](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.add_directive.html) - [PermissionsPolicy.directive](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.directive.html) - [PermissionsPolicy.accelerometer](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.accelerometer.html) - [PermissionsPolicy.ambient_light_sensor](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.ambient_light_sensor.html) - [PermissionsPolicy.aria_notify](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.aria_notify.html) - [PermissionsPolicy.attribution_reporting](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.attribution_reporting.html) - [PermissionsPolicy.autoplay](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.autoplay.html) - [PermissionsPolicy.bluetooth](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.bluetooth.html) - [PermissionsPolicy.browsing_topics](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.browsing_topics.html) - [PermissionsPolicy.compute_pressure](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.compute_pressure.html) - [PermissionsPolicy.cross_origin_isolated](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.cross_origin_isolated.html) - [PermissionsPolicy.fullscreen](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.fullscreen.html) - [PermissionsPolicy.gamepad](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.gamepad.html) - [PermissionsPolicy.geolocation](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.geolocation.html) - [PermissionsPolicy.gyroscope](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.gyroscope.html) - [PermissionsPolicy.hid](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.hid.html) - [PermissionsPolicy.identity_credentials_get](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.identity_credentials_get.html) - [PermissionsPolicy.idle_detection](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.idle_detection.html) - [PermissionsPolicy.local_fonts](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.local_fonts.html) - [PermissionsPolicy.magnetometer](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.magnetometer.html) - [PermissionsPolicy.microphone](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.microphone.html) - [PermissionsPolicy.on_device_speech_recognition](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.on_device_speech_recognition.html) - [PermissionsPolicy.otp_credentials](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.otp_credentials.html) - [PermissionsPolicy.publickey_credentials_create](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.publickey_credentials_create.html) - [PermissionsPolicy.publickey_credentials_get](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.publickey_credentials_get.html) - [PermissionsPolicy.serial](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.serial.html) - [PermissionsPolicy.speaker_selection](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.speaker_selection.html) - [PermissionsPolicy.storage_access](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.storage_access.html) - [PermissionsPolicy.summarizer](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.summarizer.html) - [PermissionsPolicy.translator](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.translator.html) - [PermissionsPolicy.language_detector](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.language_detector.html) - [PermissionsPolicy.usb](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.usb.html) - [PermissionsPolicy.web_share](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.web_share.html) - [PermissionsPolicy.window_management](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.window_management.html) - [PermissionsPolicy.xr_spatial_tracking](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.xr_spatial_tracking.html) - [PermissionsPolicy.battery](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.battery.html) - [PermissionsPolicy.camera](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.camera.html) - [PermissionsPolicy.clipboard_read](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.clipboard_read.html) - [PermissionsPolicy.clipboard_write](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.clipboard_write.html) - [PermissionsPolicy.display_capture](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.display_capture.html) - [PermissionsPolicy.document_domain](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.document_domain.html) - [PermissionsPolicy.encrypted_media](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.encrypted_media.html) - [PermissionsPolicy.execution_while_not_rendered](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.execution_while_not_rendered.html) - [PermissionsPolicy.execution_while_out_of_viewport](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.execution_while_out_of_viewport.html) - [PermissionsPolicy.midi](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.midi.html) - [PermissionsPolicy.navigation_override](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.navigation_override.html) - [PermissionsPolicy.payment](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.payment.html) - [PermissionsPolicy.picture_in_picture](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.picture_in_picture.html) - [PermissionsPolicy.screen_wake_lock](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.screen_wake_lock.html) - [PermissionsPolicy.sync_xhr](https://github.com/TypeError/secure/tree/main/docs/reference/PermissionsPolicy.sync_xhr.html) #### ReferrerPolicy Methods > Methods for the ReferrerPolicy class - [ReferrerPolicy.add](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.add.html) - [ReferrerPolicy.set](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.set.html) - [ReferrerPolicy.value](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.value.html) - [ReferrerPolicy.custom](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.custom.html) - [ReferrerPolicy.fallback](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.fallback.html) - [ReferrerPolicy.clear](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.clear.html) - [ReferrerPolicy.no_referrer](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.no_referrer.html) - [ReferrerPolicy.no_referrer_when_downgrade](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.no_referrer_when_downgrade.html) - [ReferrerPolicy.origin](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.origin.html) - [ReferrerPolicy.origin_when_cross_origin](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.origin_when_cross_origin.html) - [ReferrerPolicy.same_origin](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.same_origin.html) - [ReferrerPolicy.strict_origin](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.strict_origin.html) - [ReferrerPolicy.strict_origin_when_cross_origin](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.strict_origin_when_cross_origin.html) - [ReferrerPolicy.unsafe_url](https://github.com/TypeError/secure/tree/main/docs/reference/ReferrerPolicy.unsafe_url.html) #### XDnsPrefetchControl Methods > Methods for the XDnsPrefetchControl class - [XDnsPrefetchControl.clear](https://github.com/TypeError/secure/tree/main/docs/reference/XDnsPrefetchControl.clear.html) - [XDnsPrefetchControl.set](https://github.com/TypeError/secure/tree/main/docs/reference/XDnsPrefetchControl.set.html) - [XDnsPrefetchControl.value](https://github.com/TypeError/secure/tree/main/docs/reference/XDnsPrefetchControl.value.html) - [XDnsPrefetchControl.custom](https://github.com/TypeError/secure/tree/main/docs/reference/XDnsPrefetchControl.custom.html) - [XDnsPrefetchControl.on](https://github.com/TypeError/secure/tree/main/docs/reference/XDnsPrefetchControl.on.html) - [XDnsPrefetchControl.off](https://github.com/TypeError/secure/tree/main/docs/reference/XDnsPrefetchControl.off.html) - [XDnsPrefetchControl.allow](https://github.com/TypeError/secure/tree/main/docs/reference/XDnsPrefetchControl.allow.html) - [XDnsPrefetchControl.disable](https://github.com/TypeError/secure/tree/main/docs/reference/XDnsPrefetchControl.disable.html) #### XFrameOptions Methods > Methods for the XFrameOptions class - [XFrameOptions.value](https://github.com/TypeError/secure/tree/main/docs/reference/XFrameOptions.value.html) - [XFrameOptions.set](https://github.com/TypeError/secure/tree/main/docs/reference/XFrameOptions.set.html) - [XFrameOptions.custom](https://github.com/TypeError/secure/tree/main/docs/reference/XFrameOptions.custom.html) - [XFrameOptions.clear](https://github.com/TypeError/secure/tree/main/docs/reference/XFrameOptions.clear.html) - [XFrameOptions.deny](https://github.com/TypeError/secure/tree/main/docs/reference/XFrameOptions.deny.html) - [XFrameOptions.sameorigin](https://github.com/TypeError/secure/tree/main/docs/reference/XFrameOptions.sameorigin.html) - [XFrameOptions.allow_from](https://github.com/TypeError/secure/tree/main/docs/reference/XFrameOptions.allow_from.html) #### XPermittedCrossDomainPolicies Methods > Methods for the XPermittedCrossDomainPolicies class - [XPermittedCrossDomainPolicies.clear](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.clear.html) - [XPermittedCrossDomainPolicies.value](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.value.html) - [XPermittedCrossDomainPolicies.custom](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.custom.html) - [XPermittedCrossDomainPolicies.set](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.set.html) - [XPermittedCrossDomainPolicies.policy](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.policy.html) - [XPermittedCrossDomainPolicies.none](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.none.html) - [XPermittedCrossDomainPolicies.master_only](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.master_only.html) - [XPermittedCrossDomainPolicies.by_content_type](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.by_content_type.html) - [XPermittedCrossDomainPolicies.by_ftp_filename](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.by_ftp_filename.html) - [XPermittedCrossDomainPolicies.all](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.all.html) - [XPermittedCrossDomainPolicies.none_this_response](https://github.com/TypeError/secure/tree/main/docs/reference/XPermittedCrossDomainPolicies.none_this_response.html) #### Enumerations > Enumeration types - [Preset](https://github.com/TypeError/secure/tree/main/docs/reference/Preset.html): Predefined security header presets for :class:`Secure`