diff --git a/src/js/_enqueues/wp/custom-header.js b/src/js/_enqueues/wp/custom-header.js
index ae43f56174..eae8f12227 100644
--- a/src/js/_enqueues/wp/custom-header.js
+++ b/src/js/_enqueues/wp/custom-header.js
@@ -390,6 +390,7 @@
 				height: this.settings.height,
 				width: this.settings.width,
 				videoId: this.settings.videoUrl.match( VIDEO_ID_REGEX )[1],
+				host: location.protocol + ( ( this.settings.videoUrl.indexOf( 'youtube-nocookie' ) !== -1 ) ? '//www.youtube-nocookie.com' : '//www.youtube.com' ),
 				events: {
 					onReady: function( e ) {
 						e.target.mute();
diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
index 3b3259c573..ff2c05c557 100644
--- a/src/wp-includes/class-wp-customize-manager.php
+++ b/src/wp-includes/class-wp-customize-manager.php
@@ -6081,7 +6081,7 @@ final class WP_Customize_Manager {
 	public function _validate_external_header_video( $validity, $value ) {
 		$video = sanitize_url( $value );
 		if ( $video ) {
-			if ( ! preg_match( '#^https?://(?:www\.)?(?:youtube\.com/watch|youtu\.be/)#', $video ) ) {
+			if ( ! preg_match( '#^https?://(?:www\.)?(?:youtube(?:-nocookie)?\.com/(?:watch|embed)|youtu\.be/)#', $video ) ) {
 				$validity->add( 'invalid_url', __( 'Please enter a valid YouTube URL.' ) );
 			}
 		}
diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php
index 3c7b297b2a..0e6d37300a 100644
--- a/src/wp-includes/theme.php
+++ b/src/wp-includes/theme.php
@@ -1647,7 +1647,7 @@ function get_header_video_settings() {
 		),
 	);
 
-	if ( preg_match( '#^https?://(?:www\.)?(?:youtube\.com/watch|youtu\.be/)#', $video_url ) ) {
+	if ( preg_match( '#^https?://(?:www\.)?(?:youtube(?:-nocookie)?\.com/(?:watch|embed)|youtu\.be/)#', $video_url ) ) {
 		$settings['mimeType'] = 'video/x-youtube';
 	} elseif ( ! empty( $video_type['type'] ) ) {
 		$settings['mimeType'] = $video_type['type'];
