Call WSO2 DSS service using ajax?

我是研究僧i 提交于 2019-12-06 12:20:36

问题


I have one data service in WSO2 DSS. And also its possible to call using browsers.But i can't make a request using ajax to call this service.I think CORS issue is occurring.So i want to add Access-Control-Allow-Origin parameter to response header.How this is possible in WSO2 DSS ,Any suggestion ?


回答1:


I think you can put a custom headers by adding axis2 custom out flow handler.

http://shivendra-tripathi.blogspot.com/2010/04/adding-handler-in-axis2.html?m=1 http://shivendra-tripathi.blogspot.com/2010/04/adding-soap-header-in-axiom.html?m=1



来源:https://stackoverflow.com/questions/22086327/call-wso2-dss-service-using-ajax

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!