git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
db34f86
)
nieuws/feed: header to allow js access from any domain
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 18 Aug 2020 20:06:11 +0000
(22:06 +0200)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/nieuws/feed/index.php
b/nieuws/feed/index.php
index 00fa7ea3dcb585c642caee99ee2e85c7e9ae5230..f2c62afdb05d3466c5c1fa93777ecb883ca81d81 100644
(file)
--- a/
nieuws/feed/index.php
+++ b/
nieuws/feed/index.php
@@
-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'];
?>