Skip to content

Commit

Permalink
out of the box configuration for laravel-cors. closes #69
Browse files Browse the repository at this point in the history
  • Loading branch information
jadjoubran committed Oct 16, 2015
1 parent 3df8181 commit 6836933
Show file tree
Hide file tree
Showing 10 changed files with 368 additions and 170 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
## Changelog

### 2.10.2
+ Out of the box laravel-cors [#69](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/69)
+ Rename `$scope` and `$attrs` to `scope` and `attrs` in directive generator [#63](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/63)
+ Added model factory support [#71](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/71)
+ Fixed livereload when working in vagrant [#77](https://github.com/jadjoubran/laravel5-angular-material-starter/pull/77)
+ Added DialogService confirm method [#44](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/44)
+ Fixed JWT auth bug [#82](https://github.com/jadjoubran/laravel5-angular-material-starter/pull/82)

### 2.10.1
+ Fixed default cipher [#60](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/60)
Expand Down
18 changes: 17 additions & 1 deletion angular/app/misc/misc.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ <h2>Debugbar</h2>

</md-card>

<md-card>

<md-toolbar>
<div class="md-toolbar-tools">
<h2>Cross Origin Resource Sharing (CORS)</h2>
</div>
</md-toolbar>

<md-card-content>
<p>
<a href="https://github.com/barryvdh/laravel-cors" target="_blank">Laravel-cors</a> works out of the box. All API endpoints return the allow-access-origin header. The <strong>cors</strong> middleware is enabled in the global middlewares in app\Http\kernel.php.
</p>
</md-card-content>

</md-card>

<md-card>

<md-toolbar>
Expand Down Expand Up @@ -58,4 +74,4 @@ <h2>Angular Filters</h2>

</md-card>

</md-content>
</md-content>
1 change: 1 addition & 0 deletions app/Http/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Kernel extends HttpKernel
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
'Illuminate\Session\Middleware\StartSession',
'Illuminate\View\Middleware\ShareErrorsFromSession',
'Barryvdh\Cors\HandleCors',
// 'App\Http\Middleware\VerifyCsrfToken', //re-enable if you're disabling JWT
];

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"laravel/framework": "5.1.*",
"barryvdh/laravel-debugbar": "~2.0",
"tymon/jwt-auth": "0.5.*",
"dingo/api": "1.0.x@dev"
"dingo/api": "1.0.x@dev",
"barryvdh/laravel-cors": "0.7.x"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
Expand Down
Loading

0 comments on commit 6836933

Please sign in to comment.