Android Question HTTPServer library enable CORS

this is a configuration matter. instructions to add support for apache, nginx, IIS, etc all involve adding such instructions to
their configuration files. the same seems to be true for the jetty server (which is what i think you're using). those instructions
are found here: https://pretagteam.com/question/how-to-add-accesscontrolalloworigin-to-jetty-server. see if you can figure out
where it is on your server (and then edit it) or rebuild a new configuration file and install it.
 
Upvote 0
I want an approach from inside B4A, like inline java code or extending library itself.
I tried this but not worked!
B4X: Copy
Response.SetHeader("Access-Control-Allow-Origin","*")
 
Upvote 0
Back
Top