【发布时间】:2015-04-09 12:30:35
【问题描述】:
我正在尝试提供对 URL http://localhost:8080/api/jsonws/journalarticle/get-article-by-url-title/group-id/10182/url-title/events 的公共访问权限
当我尝试在未登录 Liferay 的情况下访问此 URL 时,我收到以下错误:
{"exception":"Authenticated access required"}
我尝试在 portal-ext.properties 中设置以下内容:
json.service.public.methods=*
jsonws.web.service.public.methods=*
我也尝试将值设置为get*,但没有成功。我需要通过托管在不同域上的 AngularJs 应用程序访问此 API,因此如果可能,我还需要设置 CORS 访问权限。
【问题讨论】: