Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 0b8102e

Browse files
committed
fix cors header
1 parent 0c9eaf4 commit 0b8102e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extensions/cors/CorsPlugin.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* This file is part of the {@link http://ontowiki.net OntoWiki} project.
44
*
5-
* @copyright Copyright (c) 2012, {@link http://aksw.org AKSW}
5+
* @copyright Copyright (c) 2013, {@link http://aksw.org AKSW}
66
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
77
*/
88

@@ -34,7 +34,7 @@ private function addCorsHeader()
3434
* TODO: allow more CORS header fields here
3535
*/
3636
if (isset ($this->_privateConfig->accessControlAllowOrigin) ) {
37-
$value = '"'.$this->_privateConfig->accessControlAllowOrigin.'"';
37+
$value = $this->_privateConfig->accessControlAllowOrigin;
3838
$response->setHeader('Access-Control-Allow-Origin', $value, true);
3939
}
4040
}

libraries/RDFauthor

Submodule RDFauthor updated 1 file

0 commit comments

Comments
 (0)