Closed sodik82 closed 4 years ago
Was overstated in the readme, seems cannot directly call the VIEW soap service from browser. If you really want to call the service from browser, probably have a proxy route in your API server.
Yes, this is a server-side component. You cannot contact the EU government server directly from the browser.
OK thanks, I guess I'll write my own code or use another package.
It's not a question of code. Browsers do not allow your website to contact arbitrary servers on the Internet. At least not using the protocol that the EU gov server uses. You need some sort of server in your domain in any case.
I think the EU gov server does not like directly access from browser due to CORS settings. Unless there is a service in the middle available that allows directly access from browser with CORS setting like Access-Control-Allow-Origin: *
, you have to call it from server side.
I am getting
I tried also
no-cors
but it is not useful as you can't read response.https://stackoverflow.com/questions/54896998/how-to-process-fetch-response-from-an-opaque-type
Not sure what to do with it.