Enable Cross Origin Resource Sharing "CORS" with Simple Web Service

Discussion created by marouen.hamdoun125668 on Aug 25, 2017
Latest reply on Aug 29, 2017 by aj474918


Currently i'm facing an issue to consume a web service created in BOOMI from a web application.
The problem is due to the request which is cross platfrom and i suppose that CORS need be configured on BOOMI side.

This is the Web Server Created (ws/simple) :



I'm using a local atom. If i configure the shared web server as "Intermediate", i get this error message once i try to make a POST call :

" Failed to load http://ip:port/ws/simple/getMysqlTest;boomi_auth=XXX=: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' is therefore not allowed access. "


In order to configure CORS , I changed the API type of the shared Web Server to "Advanced" and i added the CORS config. The new problem that appear is that the operation of the web server become unknown.


" Failed to load http://ip:port/ws/simple/getMysqlTest;boomi_auth=XXX= 404 (Unknown operation for /getMysqlTest) "


Do you have any idea about how can i make the call work from the web application ? I already tried a plugin on the browser side to enable CORS but it's not what i'm looking for.


Thank you