<?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>Accessing Liferay Web Services from other application</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=87030906" />
  <subtitle>Accessing Liferay Web Services from other application</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=87030906</id>
  <updated>2026-04-05T15:11:46Z</updated>
  <dc:date>2026-04-05T15:11:46Z</dc:date>
  <entry>
    <title>RE: Accessing Liferay Web Services from other application</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=88178411" />
    <author>
      <name>LR BEGINNER</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=88178411</id>
    <updated>2017-04-10T13:53:53Z</updated>
    <published>2017-04-10T13:53:53Z</published>
    <summary type="html">Hi Jagan,&lt;br /&gt;&lt;br /&gt;Thanks for the reply. I can access the liferay web services now from other application using CORS. After successfully login to liferay, everytime i need to parse in the authentication string to call liferay web services. Is there any secure way to do this? How can i retrieve the token after successful login to liferay? Thanks.&lt;br /&gt;&lt;br /&gt;authString = &amp;#39;Basic &amp;#39; + btoa(email + &amp;#39;:&amp;#39; + password);&lt;br /&gt;headers.append(&amp;#39;Authorization&amp;#39;, this.authString);</summary>
    <dc:creator>LR BEGINNER</dc:creator>
    <dc:date>2017-04-10T13:53:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: Accessing Liferay Web Services from other application</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87041047" />
    <author>
      <name>Jagan Mohan Jayaraman</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87041047</id>
    <updated>2017-03-12T07:09:23Z</updated>
    <published>2017-03-12T07:09:23Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;Have you checked this existing thread? &lt;br /&gt;&lt;br /&gt;https://web.liferay.com/community/forums/-/message_boards/view_message/70107361&lt;br /&gt;&lt;br /&gt;TTFN,&lt;br /&gt;Jagan.</summary>
    <dc:creator>Jagan Mohan Jayaraman</dc:creator>
    <dc:date>2017-03-12T07:09:23Z</dc:date>
  </entry>
  <entry>
    <title>Accessing Liferay Web Services from other application</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87030905" />
    <author>
      <name>LR BEGINNER</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=87030905</id>
    <updated>2017-03-11T09:07:54Z</updated>
    <published>2017-03-11T09:07:54Z</published>
    <summary type="html">Hi All,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m trying to access Liferay Web Services from other application, but being prompt of this error:&lt;br /&gt;XMLHttpRequest cannot load http://localhost:8080/api/jsonws/guestbook-portlet.guestbook/get-guestbooks/group-id/20182. No &amp;#39;Access-Control-Allow-Origin&amp;#39; header is present on the requested resource. Origin &amp;#39;http://localhost:3000&amp;#39; is therefore not allowed access.&lt;br /&gt;&lt;br /&gt;I tried to access the liferay web services from my other application using this URL below:&lt;br /&gt;private liferaySvcUrl = &amp;#39;http://localhost:8080/api/jsonws/guestbook-portlet.guestbook/get-guestbooks/group-id/20182&amp;#39;;&lt;br /&gt;&lt;br /&gt;I had also implemented CORSFilter as per suggested in this blog below. I&amp;#39;m not sure whether i&amp;#39;m missing something.&lt;br /&gt;https://web.liferay.com/community/dev.life/previous/-/asset_publisher/2wvNGOKWjJYi/content/20140923-tomas-polesovsky-securing-remote-json-web-services?redirect=https%3A%2F%2Fwww.liferay.com%2Fcommunity%2Fdev.life%2Fprevious%3Fp_p_id%3D101_INSTANCE_2wvNGOKWjJYi%26p_p_lifecycle%3D0%26p_p_state%3Dnormal%26p_p_mode%3Dview%26p_p_col_id%3Dcolumn-2%26p_p_col_pos%3D3%26p_p_col_count%3D5&amp;amp;_ga=1.81035991.172414139.1487411093&lt;br /&gt;&lt;br /&gt;Any advise would be great. Thanks.</summary>
    <dc:creator>LR BEGINNER</dc:creator>
    <dc:date>2017-03-11T09:07:54Z</dc:date>
  </entry>
</feed>
