Skip to content

Commit

Permalink
Add a comment why we allow all origins for our public JSON API
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalchevrel committed Jun 28, 2024
1 parent d99d598 commit 9bfa3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/classes/ReleaseInsights/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function output(): string
}

ob_start();
header("access-control-allow-origin: *");
header("access-control-allow-origin: *"); // * is OK as our Json API is public and readonly
header("Content-type: {$mime}; charset=UTF-8");
header("Content-Length: " . strlen($json));
echo $json;
Expand Down

0 comments on commit 9bfa3ef

Please sign in to comment.