Skip to content
Browse files

Enable CORS

  • Loading branch information...
1 parent b3c6e95 commit 36fd365d6274320cb178631edb116e1340f3e817 @bergie committed May 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 index.php
View
3 index.php
@@ -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'];

0 comments on commit 36fd365

Please sign in to comment.
Something went wrong with that request. Please try again.