Set Content-Type

Report a typo

In theory we looked at an example where we converted an object to JSON and returned it with call.respondText

This function sets Content-Type: text/plain by default.

How can we change the type of the return data to application/json?

Select one option from the list
___

Create a free account to access the full topic