nieuws/feed: header to allow js access from any domain
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 18 Aug 2020 20:06:11 +0000 (22:06 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Tue, 17 Nov 2020 02:02:20 +0000 (03:02 +0100)
Data is meant to be readable.

nieuws/feed/index.php

index 00fa7ea3dcb585c642caee99ee2e85c7e9ae5230..f2c62afdb05d3466c5c1fa93777ecb883ca81d81 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 header('Content-Type: application/atom+xml; charset=utf-8');
+header('Access-Control-Allow-Origin: *');
 print '<?xml version="1.0" encoding="utf-8"?>';
 $siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'];
 ?>