-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Please change jsonp "Content-Type" to "application/javascript"
public $contentTypeJson = 'application/json';
public $contentTypeJsonp = 'application/javascript';
if($jsonp_callback !== null){
$app->response()->header('Content-Type', $this->contentTypeJsonp);
$app->response()->body($jsonp_callback.'('.json_encode($response, $this->encodingOptions).')');
} else {
$app->response()->header('Content-Type', $this->contentTypeJson);
$app->response()->body(json_encode($response, $this->encodingOptions));
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels