Access-Control-Allow-Origin
authorhiroto
Wed, 04 Sep 2013 16:04:11 +0900
changeset 48 45605100dd6f
parent 47 02f5779fa662
child 49 fc1f736d9cbe
Access-Control-Allow-Origin
autotweet-php/src/Org/W3/AutotweetBundle/Controller/DefaultController.php
--- a/autotweet-php/src/Org/W3/AutotweetBundle/Controller/DefaultController.php	Wed Sep 04 15:59:46 2013 +0900
+++ b/autotweet-php/src/Org/W3/AutotweetBundle/Controller/DefaultController.php	Wed Sep 04 16:04:11 2013 +0900
@@ -50,6 +50,7 @@
             $valid='false';
         }
         $response = new JsonResponse();
+        $response->headers->set('Access-Control-Allow-Origin','*');
         $response->setData(array(
             'accepted' => $valid
         ));