Response header customization
Some reponse headers can be customized by means of dedicated API fields
X-Content-Type-Options
By default this header is set as X-Content-Type-Options
in responses but if for any reason it should not be present
it can be changed via API
** API curl
request example - disabling header **:
curl -H "X-User-Id: $CLOUD_USERNAME" -H "X-Api-Key: $CLOUD_PASSWORD" -H 'Content-Type: application/json' -X PATCH -d'
{
"x_content_type_options_tag": null
}' https://farmer.storefrontcloud.io/instance/<your-instance-name>
To restore default behaviour you need to explicitly set it to nosniff
e.g.:
** API curl
request example - restoring default **:
curl -H "X-User-Id: $CLOUD_USERNAME" -H "X-Api-Key: $CLOUD_PASSWORD" -H 'Content-Type: application/json' -X PATCH -d'
{
"x_content_type_options_tag": "nosniff"
}' https://farmer.storefrontcloud.io/instance/<your-instance-name>