We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 96e41af + 36c6041 commit d96607aCopy full SHA for d96607a
Security/Listener/CorsSecurityListener.php
@@ -43,6 +43,11 @@ public function onKernelRequest(RequestEvent $event): void
43
return;
44
}
45
46
+ // If Origin header was the same as the request host, we can skip CORS validation
47
+ if ($request->headers->get('Origin') === $request->getSchemeAndHttpHost()) {
48
+ return;
49
+ }
50
+
51
// If the request has an Origin header and the CORS listener has not validated it, deny the request
52
if (
53
$request->headers->has('Origin')
0 commit comments