Message Boards
why liferay portleturl-createResourceURL is not working for user role?
Yiwei Cao, modified 2 Years ago.
why liferay portleturl-createResourceURL is not working for user role?
New Member Posts: 6 Join Date: 5/14/18 Recent PostsHi, I am using liferay dxp 7.3.10 GA1.
var resURL = Liferay.Util.PortletURL.createResourceURL( '${renderUrl}', { 'resourceID': 'setFavourite', groupId: groupId, 'p_auth': Liferay.authToken } );
administrator role does not have any problem in local (http) and server (https). But user role does not have the correct response on server(https):
error msg: "SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data"
Local (http) works anyway for user role.
I have found a similar question at:
https://liferay.dev/ask/questions/development/why-liferay-portleturl-createrenderurl-is-not-working-for-user-role--1
Any help would be appreciated.
Yiwei Cao, modified 2 Years ago.
RE: why liferay portleturl-createResourceURL is not working for user role?
New Member Posts: 6 Join Date: 5/14/18 Recent PostsWe have found the issue. This ticket might be deleted/closed.