Commit 6f7ddad8 authored by François Agneray's avatar François Agneray

Unprotect OPTIONS (AdminMiddleware)

parent ed671c57
......@@ -22,7 +22,7 @@ final class AdminMiddleware implements MiddlewareInterface
{
public function process(Request $request, RequestHandler $handler): Response
{
if ($request->getMethod() === GET) {
if ($request->getMethod() === OPTIONS || $request->getMethod() === GET) {
return $handler->handle($request);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment