From 08dc666b242ba2f5eb9ec735419e0b3a0aaf51db Mon Sep 17 00:00:00 2001 From: root Date: Wed, 16 Nov 2022 15:16:18 +0100 Subject: [PATCH] CORS support needed for radiomanifest web clients --- src/Controller/PodcastRorController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Controller/PodcastRorController.php b/src/Controller/PodcastRorController.php index 9175558..f3d2b11 100644 --- a/src/Controller/PodcastRorController.php +++ b/src/Controller/PodcastRorController.php @@ -101,7 +101,11 @@ class PodcastRorController extends ControllerBase { )]; //$variables['ror']['url'] = $xml = $template->render($tmpl_data); - $resp = new Response($xml, 200, array( 'Content-Type' => 'application/rss+xml')); + $resp = new Response($xml, 200, array( + 'Content-Type' => 'application/rss+xml', + 'Access-Control-Allow-Origin' => '*', + 'Access-Control-Allow-Methods' => 'GET', + )); return $resp; } public function podcastAll() {