Skip to content

Commit

Permalink
Merge pull request #73 from islamic-network/meezaan-patch-1
Browse files Browse the repository at this point in the history
Update index.php
  • Loading branch information
meezaan authored Apr 1, 2023
2 parents 4dde025 + 19690bb commit edb65f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion html/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS');
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Headers: Authorization, origin, if-none-match');
header('Access-Control-Expose-Headers: *');

require_once (realpath(__DIR__ . '/../vendor/autoload.php'));

Expand All @@ -8,4 +13,4 @@
// Instantiate Slim, load dependencies and middlewares
$app = Api::boot();

$app->run();
$app->run();

0 comments on commit edb65f7

Please sign in to comment.