Skip to content

Commit

Permalink
remove redundant access control headers
Browse files Browse the repository at this point in the history
  • Loading branch information
struan committed Jan 26, 2017
1 parent c35438b commit ff03a06
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion www/docs/api/api_functions.php
Expand Up @@ -213,7 +213,6 @@ function api_output($arr, $last_mod=null) {
} elseif ($output == 'json') {
$out = json_encode($arr, JSON_PRETTY_PRINT);
} else { # JS
header('Access-Control-Allow-Origin: *');
$out = api_output_js($arr);
$callback = get_http_var('callback');
if (preg_match('#^[A-Za-z0-9._[\]]+$#', $callback)) {
Expand Down

0 comments on commit ff03a06

Please sign in to comment.