You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in the process of testing out Cockpit CMS, which encourages the use of Lime in all their examples. So far, the only issue I've had is while trying to create a JSON file in PHP (from data in the Cockpit API) that I want to use for a small react app. The page is assigned the content-type text/html, instead of application/json, even though the view contains a header('Content-Type: application/json; charset=UTF-8').
Is there a way to change the content-type when using the $app-render() method, or is there a recommended solution to this?
The text was updated successfully, but these errors were encountered:
I'm in the process of testing out Cockpit CMS, which encourages the use of Lime in all their examples. So far, the only issue I've had is while trying to create a JSON file in PHP (from data in the Cockpit API) that I want to use for a small react app. The page is assigned the content-type
text/html
, instead ofapplication/json
, even though the view contains aheader('Content-Type: application/json; charset=UTF-8')
.Is there a way to change the content-type when using the
$app-render()
method, or is there a recommended solution to this?The text was updated successfully, but these errors were encountered: