CORS support

needed for radiomanifest web clients
This commit is contained in:
root 2022-11-16 15:16:18 +01:00
parent 12e0734ad6
commit 08dc666b24

View file

@ -101,7 +101,11 @@ class PodcastRorController extends ControllerBase {
)]; )];
//$variables['ror']['url'] = //$variables['ror']['url'] =
$xml = $template->render($tmpl_data); $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; return $resp;
} }
public function podcastAll() { public function podcastAll() {