wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_start_cross_origin_isolation_output_buffer › WordPress Function

Od7.1.0
Przestarzały7.2.0
› wp_start_cross_origin_isolation_output_buffer ( Brak parametrów )
Zobacz:
Zdefiniowane na:
Codex:

Starts an output buffer that sends the Document-Isolation-Policy header and adds crossorigin="anonymous" to cross-origin resources.

The attribute injection was dropped because isolate-and-credentialless loads cross-origin resources without it, and forcing CORS mode broke resources served without Access-Control-Allow-Origin. Only the header is sent now.


Źródło

function wp_start_cross_origin_isolation_output_buffer(): void {
	_deprecated_function( __FUNCTION__, '7.2.0', 'wp_send_document_isolation_policy_header()' );

	wp_send_document_isolation_policy_header();
}