IBM Worklight - How to change dynamically domain/hostname to which the adapter connects from the client at launch or runtime?

后端 未结 4 1260
耶瑟儿~
耶瑟儿~ 2020-12-11 08:25

When configuring WL HTTP Adapters, the domain and port are part of the adapter configuration .xml file build and uploaded on the WL server. For our use case (especially beta

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-11 09:15

    I think if you override WL.Server.invokeHttp so you can specify the domain name in each request instead of using the one set in the XML file, would a good alternative . You can get the domain name as parameter in the invocation request.

    There is question that may interest you regarding that, you should check it because I'm not sure if it's possible or not. Worklight Adapter Override Origin of request

提交回复
热议问题