We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975ef49 commit 90a50d2Copy full SHA for 90a50d2
laravel/app/Http/Middleware/Cors.php
@@ -16,7 +16,7 @@ class Cors
16
public function handle($request, Closure $next)
17
{
18
return $next($request)->header('Access-Control-Allow-Origin', '*')
19
- ->header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS, PUT, DELETE')
+ ->header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS, PUT, PATCH, DELETE')
20
->header('Access-Control-Allow-Headers', 'Content-Type, Accept, Authorization, X-Requested-With');
21
}
22
0 commit comments