SilverStripe\GraphQL\Controller::addCorsHeaders
Process the CORS config options and add the appropriate headers to the response.
Signature
public function addCorsHeaders(HTTPRequest
$request,
HTTPResponse
$response )
Parameters
$request
— SilverStripe\Control\HTTPRequest
$response
— SilverStripe\Control\HTTPResponse
Returns
- HTTPResponse