Issue
HTTP Header parameters of a REST Published Service with underscores in their names, for instance api_key, become empty when the application runs in the Mendix Cloud. Although it works running locally.
When debugging the REST call, can be seeing the following error message:
TRACE - REST Publish: The request does not have a 'api_key' header, using default value: emptyEnvironment
Mendix Cloud
Cause
This happens because the Mendix applications deployed on the Mendix Cloud are running on a NGINX web server and in our servers the setting underscores_in_headers is not enabled.
Solution/Workaround
The user can rename the header replacing the underscores _ with hyphens - .
For example, api_key becomes api-key.
Internal information related
- 217147
- CUUNVHS9M/p1715857499598729
0 Comments