Colymba\RESTfulAPI\RESTfulAPI::setAnswerCORS
Apply the proper CORS response heardes to an HTTPResponse
Signature
private function setAnswerCORS(HTTPResponse
$answer )
Parameters
$answer
— SilverStripe\Control\HTTPResponse- The updated response if CORS are neabled
Returns
- HTTPResponse