Zitified web app

Hi,community!
I make a web server by ziti-go-sdk and vue. i found when i get http://sample.web.ziti in chrome by ziti-edge-win work well. when i zitified go sdk client to get http://test/ , i dont know how to handle js by ziti.if the server is only a html(no js) ,it work well.

this picture connect by ziti-edge-win

connect by ziti-go-sdk (test is the ziti-service name)


Thanks!

Hi @kittysammy123,

You’re writing an application embedded zero trust server, cool!

Now, let me make sure I understand. It sounds to me like you have written a server using the ziti sdk-golang sdk, and now you’re accessing that server through the Ziti Desktop Edge for Windows, and you’re having trouble accessing http://test. Is that the issue? One thing that is somewhat important is to use a fully qualified domain name, something with a period in the name like “test.ziti”. “unqualified” names, like “http://test” can cause problems in windows for complicated reasons. Could you try using “http://test.ziti” instead?

If you’re using the Ziti Desktop Edge (for Windows/Mac/Linux) then I wouldn’t expect javascript to cause you any issues.

I hope I understand the issue, but if not do let us know.

hi,using Ziti Desktop Edge for Windows is correct。 i convert the ziti-go-sdk to c++ dll,and wirte a QT application (embed ziti c++ dll) to accesing the dark server. http://test/ to access a pure html is right , access a html with js is bad.

Out of curiosity, why convert sdk-golang code to a .dll for C++? Why not use the ziti-sdk-c?

Unfortunately, I can’t help you with the js part being ‘bad’. It should work just fine. Where is your javascript breaking down, is it a CORS issue? Do you need to reply to the browser that some other domain is acceptable? That would be my guess. What url is the server available on, and what html comes back that doesn’t work? Any more information you have to help me help you would be great.

thanks,because the chineses ufw caused bulid ziti-sdk-c error by visual studio 。

How about those questions? Is the code somewhere we could see, like in GitHub?