如何在weblogic(CORS)中添加传输头?

问题描述 投票:2回答:1

我使用Oracle SOA Suite并需要添加一个传输头Access-Control-Allow-Origin: *

在配置服务器weblogic中获取:

enter image description here

这张图片是IIS7中的一项服务,他有下一个配置:

<httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Methods" value="OPTIONS,POST" /> <add name="Access-Control-Allow-Headers" value="Content-Type,SOAPAction,origin" /> </customHeaders> </httpProtocol>

我是如何在weblogic服务器中执行此操作的?

默认情况下,他在浏览器中显示weblogic:

enter image description here

weblogic soa weblogic11g
1个回答
0
投票

您必须在Web服务中设置属性“Access-Control-Allow-Origin”

这可能对您有所帮助:

https://techgrit.blogspot.com/2018/09/enable-cross-origin-resource-sharing.html

© www.soinside.com 2019 - 2024. All rights reserved.