简体   繁体   English

使用Hazelcast启用CORS

[英]Enable CORS with Hazelcast

I am currently using Hazelcast to expose a RestAPI for an Angular Client. 我目前正在使用Hazelcast公开Angular Client的RestAPI。

Is there any way to allow CORS on our Hazelcast server ? 有什么方法可以在我们的Hazelcast服务器上允许CORS?

I can't find anything about that in their documentation. 我在他们的文档中找不到关于此的任何信息。

Hazelcast is not designed to be exposed to the Internet, that said the REST API is not designed to be used by web applications directly. Hazelcast并非旨在向Internet公开,也就是说REST API并非旨在由Web应用程序直接使用。 If you use node.js you might consider using the node.js client. 如果使用node.js,则可以考虑使用node.js客户端。

To answer the question itself: CORS is not supported for the reason stated above. 要回答问题本身:由于上述原因,不支持CORS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM