Skip to content

Commit

Permalink
Add cross origin
Browse files Browse the repository at this point in the history
  • Loading branch information
badcast committed Nov 13, 2023
1 parent e3a753b commit aab9c10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server-php/api/sender.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function send_json($data)
{
header("HTTP/1.1 200 OK");
header("Content-Type: application/json");
header("Access-Control-Allow-Origin: *");
echo json_encode($data);
}

Expand Down

0 comments on commit aab9c10

Please sign in to comment.