Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Set custom value in Header for Api
Hi All,I am using Liferay 6.2 EE and creating web service for some external use.My question is .Can we set custom header value in Liferay api.
Thanks,Pankaj Semwal
Thanks,Pankaj Semwal
Hi,
You can write a Servlet filter for /api/jsonws/* and update the header as per your requirement in response.
You can refer below for creating servlet filter
http://www.liferaysavvy.com/2016/02/liferay-servlet-filter-hooks.html
You can write a Servlet filter for /api/jsonws/* and update the header as per your requirement in response.
You can refer below for creating servlet filter
http://www.liferaysavvy.com/2016/02/liferay-servlet-filter-hooks.html
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™