简体   繁体   English

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

[英]How add transport header in weblogic (CORS)?

I work with Oracle SOA Suite and need to add one transport header Access-Control-Allow-Origin: *我使用 Oracle SOA Suite 并需要添加一个传输标头Access-Control-Allow-Origin: *

In the configuration the server weblogic for get this:在配置中,服务器 weblogic 用于获取:

在此处输入图片说明

this picture is of one service in IIS7, that he have the next configuration:这张图片是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>

How I do this in weblogic server?我如何在 weblogic 服务器中做到这一点?

for default in the browser whit weblogic he show this:默认情况下,他在浏览器中显示了 weblogic:

在此处输入图片说明

You will have to set the property 'Access-Control-Allow-Origin' inside your webservice您必须在您的网络服务中设置属性“Access-Control-Allow-Origin”

This might help you :这可能会帮助你:

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

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

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