X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fuserxrd.php;h=4ba7f91c7e0943cde39aa3ab1faa4241919ea356;hb=cb183359e23ae7a5cfb483fa06c6c4b7a8b05fff;hp=1d888064d67f094af0625b78110ef17a270c2c6b;hpb=069d976fab355be974ce589d5d04494c4c9e000e;p=quix0rs-gnu-social.git diff --git a/actions/userxrd.php b/actions/userxrd.php index 1d888064d6..4ba7f91c7e 100644 --- a/actions/userxrd.php +++ b/actions/userxrd.php @@ -30,6 +30,10 @@ class UserxrdAction extends XrdAction function prepare($args) { parent::prepare($args); + global $config; + if($config['site']['cors'] === true){ + header('Access-Control-Allow-Origin: *'); + } $this->uri = $this->trimmed('uri'); $this->uri = self::normalize($this->uri);