Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
just the api CORS header
  • Loading branch information
Joel Salisbury committed Sep 21, 2017
1 parent 789a1fc commit bcc0ad3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/index.php
@@ -1,5 +1,7 @@
<?php
header("Access-Control-Allow-Origin: *");
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');

$autoloader = require './vendor/autoload.php'; // Composer Autoload Libraries
$autoloader->add('', __DIR__ . '/generated-classes/'); // Propel ORM Classes
require './generated-conf/config.php'; // Propel Config
Expand Down

0 comments on commit bcc0ad3

Please sign in to comment.