<?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>Liferay JSON Web Services available at /api/jsonws is open access for any u</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118691483" />
  <subtitle>Liferay JSON Web Services available at /api/jsonws is open access for any u</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118691483</id>
  <updated>2026-04-04T03:13:46Z</updated>
  <dc:date>2026-04-04T03:13:46Z</dc:date>
  <entry>
    <title>RE: Liferay JSON Web Services available at /api/jsonws is open access for a</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118704258" />
    <author>
      <name>Abdollah Esmaeilpour</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118704258</id>
    <updated>2020-03-10T11:39:21Z</updated>
    <published>2020-03-10T11:39:21Z</published>
    <summary type="html">Great help. So I decided not to use Permissions for this purpose. I used &lt;strong&gt;jsonws.servlet.hosts.allowed&lt;/strong&gt; in &lt;em&gt;portal-ext.properties&lt;/em&gt; and restricted the access to that page to some safe IPs.</summary>
    <dc:creator>Abdollah Esmaeilpour</dc:creator>
    <dc:date>2020-03-10T11:39:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay JSON Web Services available at /api/jsonws is open access for a</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118692146" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118692146</id>
    <updated>2020-03-08T11:50:23Z</updated>
    <published>2020-03-08T11:50:23Z</published>
    <summary type="html">Well, the page itself is the least of your problems. You really should upgrade to a newer Liferay version.&lt;br /&gt;That said, David Nebinger wrote a blog about securing that page, but it applies only to 7.0+&lt;br /&gt;&lt;a href="https://liferay.dev/blogs/-/blogs/securing-the-api-jsonws-ui"&gt;https://liferay.dev/blogs/-/blogs/securing-the-api-jsonws-ui&lt;/a&gt;&lt;br /&gt;You should be able to do the same (codewise) for 6.2 by using a hook.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-03-08T11:50:23Z</dc:date>
  </entry>
  <entry>
    <title>Liferay JSON Web Services available at /api/jsonws is open access for any u</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118691482" />
    <author>
      <name>Abdollah Esmaeilpour</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118691482</id>
    <updated>2020-03-08T10:44:27Z</updated>
    <published>2020-03-08T10:44:27Z</published>
    <summary type="html">I asked this question on &lt;a href="https://stackoverflow.com/questions/60579109/liferay-json-web-services-available-at-api-jsonws-is-open-access-for-any-user"&gt;StackOverflow &lt;/a&gt;but I didn&amp;#39;t receive any answer. So I am repeating it here. I hope someone can help me.&lt;br /&gt;&lt;br /&gt;On Liferay 6.2, the JSON Web Services are open access via&lt;span style="color: #212529"&gt;&lt;span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace"&gt;&lt;span style="font-size: 14px;"&gt; http://example.com/api/jsonws&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 16px;"&gt;. I know that I can restrict access to it to some special IPs via &lt;/span&gt;&lt;span style="color: #212529"&gt;&lt;span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace"&gt;&lt;span style="font-size: 14px;"&gt;portal-ext.properties&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 16px;"&gt;. But I want to grant this permission just to &lt;/span&gt;Administrators &lt;span style="font-size: 16px;"&gt;to see this page. A &lt;/span&gt;&lt;u&gt;&lt;span style="font-size: 16px;"&gt;&lt;a href="https://portal.liferay.dev/docs/6-2/tutorials/-/knowledge_base/t/service-security-layers"&gt;Liferay document&lt;/a&gt;&lt;/span&gt;&lt;/u&gt;&lt;span style="font-size: 16px;"&gt; says&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-size: 16px;"&gt;&amp;#34;Liferay’s user permission layer is the last Liferay security layer triggered when services are invoked remotely.&amp;#34;&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-size: 16px;"&gt;But I couldn&amp;#39;t find anything nor in &lt;/span&gt;&lt;span style="color: #212529"&gt;&lt;span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace"&gt;&lt;span style="font-size: 14px;"&gt;portal.properties&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 16px;"&gt; neither in &lt;/span&gt;Control Panel/Roles&lt;span style="font-size: 16px;"&gt; to set such permission for &lt;/span&gt;Administrators &lt;span style="font-size: 16px;"&gt;to prevent others from seeing &lt;/span&gt;&lt;span style="color: #212529"&gt;&lt;span style="font-family: SFMono-Regular, Menlo, Monaco, Consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace"&gt;&lt;span style="font-size: 14px;"&gt;http://example.com/api/jsonws.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;..</summary>
    <dc:creator>Abdollah Esmaeilpour</dc:creator>
    <dc:date>2020-03-08T10:44:27Z</dc:date>
  </entry>
</feed>
