I was trying to use the Accept-Language header with the headless delivery API without success. I then found two places in the documentation mentioning “Ensure that the Accept-Language header is allow-listed in the server configuration to make translations in web content work as expected”.
It’s unclear what the “server configuration” refers to, and where I should navigate to make changes.
Links to documentation:
https://learn.liferay.com/w/dxp/integration/headless-apis/using-liferay-as-a-headless-platform/consuming-apis/api-headers-reference#accept-language
https://learn.liferay.com/w/dxp/content-management-system/translating-pages-and-content/translating-web-content
1 Answer
1
Hey there. In this case, Server Configuration does not refer to Liferay, it means other components within your infrastructure, such as your web server or hosting provider
Okay, so in my case, that would be nginx and Tomcat with Liferay. Or I might have too old Liferay version.
– arnivuo