0
Well, I’m trying to use pure Js and html, to consume an api, running on the localhost. Follow the codes: Java
Javascript(running on a local server)
but it returns a Cors error, which I am placing source and destination in the destination header, and the return header. When I don’t use Cors, it works, but it doesn’t return the body. When I enable Cors, it returns the following error