CORS support
needed for radiomanifest web clients
This commit is contained in:
parent
12e0734ad6
commit
08dc666b24
1 changed files with 5 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue