DEV Community

Discussion on: Make a Soap call in React js by a webservice

Collapse
 
miketalbot profile image
Mike Talbot ⭐ • Edited

Either:

  1. setup your webpackdev server to proxy to the remote host and use a relative path from your / (only if they will one day be hosted in the same domain, if they won't be on the same domain, don't do this)
  2. Enable CORS on the remote server if you have access to it or can configure a proxy in front of it
  3. Use a CORS proxy like one from here: nordicapis.com/10-free-to-use-cors...

Browsers are more picky about CORS than Postman is.