Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Enable CORS
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed May 8, 2012
1 parent b3c6e95 commit 36fd365
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

require 'vendor/midgard/midgardmvc-helper-urlize/interface.php';

// Allow CORS so that this can be easily used from JavaScript
header('Access-Control-Allow-Origin: *');

if (isset($_GET['urlize'])) {
$data = array();
$data['from'] = $_GET['urlize'];
Expand Down

0 comments on commit 36fd365

Please sign in to comment.