Hi,

I am having some trouble getting CORS to work. I have a simple Julia server 
on an Azure VM. If I navigate to the URL, I can see the response I expect, 
but I am now trying to get this to work cross origin.

I tried the following, but it is not working:

    using HttpServer
    using JSON
    import Requests
    
    http = HttpHandler() do req::Request, res::Response
res.headers["Access-Control-Allow-Origin"] = "*"
     
    # Messy route handling here.
 
    end
    server = Server(http)
    run(server, 8000)

Any suggestions? Thanks!

Reply via email to