Skip to content

Commit

Permalink
fix cors header
Browse files Browse the repository at this point in the history
  • Loading branch information
seebi committed Jan 21, 2013
1 parent 0c9eaf4 commit 0b8102e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions extensions/cors/CorsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file is part of the {@link http://ontowiki.net OntoWiki} project.
*
* @copyright Copyright (c) 2012, {@link http://aksw.org AKSW}
* @copyright Copyright (c) 2013, {@link http://aksw.org AKSW}
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
*/

Expand Down Expand Up @@ -34,7 +34,7 @@ private function addCorsHeader()
* TODO: allow more CORS header fields here
*/
if (isset ($this->_privateConfig->accessControlAllowOrigin) ) {
$value = '"'.$this->_privateConfig->accessControlAllowOrigin.'"';
$value = $this->_privateConfig->accessControlAllowOrigin;
$response->setHeader('Access-Control-Allow-Origin', $value, true);
}
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/RDFauthor
Submodule RDFauthor updated 1 files
+1 −6 src/widget.datetime.js

0 comments on commit 0b8102e

Please sign in to comment.