2

I work with Oracle SOA Suite and need to add one transport header Access-Control-Allow-Origin: *

In the configuration the server weblogic for get this:

enter image description here

this picture is of one service in IIS7, that he have the next configuration:

<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?

for default in the browser whit weblogic he show this:

enter image description here

maryvargas
  • 31
  • 1
  • 1
  • 3
  • Did you check what is the default value showing up for this header for any SOA service running on weblogic? – amishra Dec 06 '16 at 21:58
  • Yes, In the second image is show. @amishra – maryvargas Dec 14 '16 at 14:40
  • 1
    I do not think it is possible at weblogic level. Although you can set it from inside the web service or if you have a http server in front of weblogic, you can set it there. http://stackoverflow.com/questions/4306444/how-configure-the-http-headers-in-weblogic-response – amishra Dec 14 '16 at 14:45
  • You might need this one: http://www.ateam-oracle.com/oam-protected-spas-and-same-origin-policy/ – Koshinae Jun 06 '17 at 09:33

1 Answers1

-1

You will have to set the property 'Access-Control-Allow-Origin' inside your webservice

This might help you :

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

leo1990
  • 1
  • 1