Skip to content

Commit 90a50d2

Browse files
committed
add PATCH cors
1 parent 975ef49 commit 90a50d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/app/Http/Middleware/Cors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Cors
1616
public function handle($request, Closure $next)
1717
{
1818
return $next($request)->header('Access-Control-Allow-Origin', '*')
19-
->header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS, PUT, DELETE')
19+
->header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS, PUT, PATCH, DELETE')
2020
->header('Access-Control-Allow-Headers', 'Content-Type, Accept, Authorization, X-Requested-With');
2121
}
2222
}

0 commit comments

Comments
 (0)