Skip to content

Instantly share code, notes, and snippets.

@0xnbk
Last active April 23, 2018 09:04
Show Gist options
  • Save 0xnbk/3e662489523a321d0769 to your computer and use it in GitHub Desktop.
Save 0xnbk/3e662489523a321d0769 to your computer and use it in GitHub Desktop.
<?php // \app\http\routes.php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
// CORS
header('Access-Control-Allow-Origin: http://myclient.com');
header('Access-Control-Allow-Credentials: true');
//All routes below
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment