Move the Access Control headers to a middleware.
This commit is contained in:
@@ -268,8 +268,6 @@ final class Index
|
||||
'Cache-Control' => 'no-cache',
|
||||
'Connection' => 'keep-alive',
|
||||
'X-Accel-Buffering' => 'no',
|
||||
'Access-Control-Allow-Origin' => '*',
|
||||
'Access-Control-Allow-Credentials' => 'true',
|
||||
],
|
||||
body: StreamClosure::create($callable)
|
||||
))->withoutHeader('Content-Length');
|
||||
|
||||
@@ -139,8 +139,6 @@ final class Command
|
||||
'Cache-Control' => 'no-cache',
|
||||
'Connection' => 'keep-alive',
|
||||
'X-Accel-Buffering' => 'no',
|
||||
'Access-Control-Allow-Origin' => '*',
|
||||
'Access-Control-Allow-Credentials' => 'true',
|
||||
'Last-Event-Id' => time(),
|
||||
],
|
||||
body: StreamClosure::create($callable)
|
||||
|
||||
Reference in New Issue
Block a user