Skip to content
Snippets Groups Projects
Commit 0d1a6ec1 authored by Nicolas Borboën's avatar Nicolas Borboën
Browse files

[fix] OPTIONS's query payload

parent 7f4e23cd
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ class CorsMiddleware
if ($request->isMethod('OPTIONS'))
{
return response()->json('{"method":"OPTIONS"}', 200, $headers);
return response()->json(array("method" => "OPTIONS"), 200, $headers);
}
$response = $next($request);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment