| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function handle($request, Closure $next) |
||
| 17 | { |
||
| 18 | $response = $next($request); |
||
| 19 | $response->headers->set('Access-Control-Allow-Origin', '*'); |
||
| 20 | $response->headers->set('Access-Control-Allow-Methods', 'POST, GET, OPTIONS, PUT, DELETE'); |
||
| 21 | $response->headers->set('Access-Control-Allow-Headers', 'Content-Type, Accept, Authorization, X-Requested-With, Application'); |
||
| 22 | |||
| 23 | return $response; |
||
| 24 | } |
||
| 25 | } |
||
| 26 |