Liferay:使用 JSON WebService 和 https 时出现问题

Liferay: Issue when Using JSON WebService and https

我已经创建了一个 Liferay Web 服务,并且可以通过 JSON 访问它。 我调用成功调用并使用 JSON WebService 使用此 URL:

https://localhost:8080/api/jsonws/my-portlet-name/my-method/time-unit/HOUR/class-name/TEST

我已经这样注释了我的 Web 服务:

@com.liferay.portal.security.ac.AccessControlled(guestAccessEnabled = true, hostAllowedValidationEnabled = false)

当我在本地 (http) 使用此调用时,我没有遇到任何问题。 一旦我将它部署到我们的测试服务器 (https),​​我就会得到 "Forbidden - no permissions to access this resource".

如何访问我的 JSON Web 服务调用?

好的,老实说:我不知道是否有答案;)

我已经使用 Liferay.Service js 调用来做同样的事情并且有效。

所以不再有 URL 来自 jQuery 的电话...