Update DefaultController.php

setAllowOriginHeader allow Response but the other functions always send JsonResponse
Merge pull request #14 from ben-j69/patch-1

Update DefaultController.php