<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Set custom value in Header for Api</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117204622" />
  <subtitle>Set custom value in Header for Api</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117204622</id>
  <updated>2026-04-04T10:14:29Z</updated>
  <dc:date>2026-04-04T10:14:29Z</dc:date>
  <entry>
    <title>RE: Set custom value in Header for Api</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117274529" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117274529</id>
    <updated>2019-09-24T12:45:50Z</updated>
    <published>2019-09-24T12:45:50Z</published>
    <summary type="html">Hi, &lt;br /&gt;You can write a Servlet filter  for /api/jsonws/* and update the header as per your requirement in response.&lt;br /&gt; You can refer below for creating servlet filter&lt;br /&gt;&lt;a href="http://www.liferaysavvy.com/2016/02/liferay-servlet-filter-hooks.html"&gt;http://www.liferaysavvy.com/2016/02/liferay-servlet-filter-hooks.html&lt;/a&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-09-24T12:45:50Z</dc:date>
  </entry>
  <entry>
    <title>Set custom value in Header for Api</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117204621" />
    <author>
      <name>Pankaj Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117204621</id>
    <updated>2019-09-18T17:56:24Z</updated>
    <published>2019-09-18T17:56:24Z</published>
    <summary type="html">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.&lt;br /&gt;Thanks,Pankaj Semwal</summary>
    <dc:creator>Pankaj Kumar</dc:creator>
    <dc:date>2019-09-18T17:56:24Z</dc:date>
  </entry>
</feed>
