You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Question] I am using Server local host to open an html on safari with the following error: safari cannot open the page because it could not connect to the server. let localServer = HttpServer() let html = htmlFor(title: GlobalManager.shared.typeAppMakeIcon.name, urlToRedirect: deepLinkUrl, iconBase64: iconBase64, iconTutorial: tutorialBase64) guard let base64 = html.data(using: .utf8)?.base64EncodedString() else { return } localServer?["/s"] = { request in return .movedPermanently("data:text/html;base64,\(base64)") } try? localServer?.start(in_port_t(serverRandom)) UIApplication.shared.open(shortcutUrl)
The text was updated successfully, but these errors were encountered:
[Question] I am using Server local host to open an html on safari with the following error: safari cannot open the page because it could not connect to the server.
let localServer = HttpServer() let html = htmlFor(title: GlobalManager.shared.typeAppMakeIcon.name, urlToRedirect: deepLinkUrl, iconBase64: iconBase64, iconTutorial: tutorialBase64) guard let base64 = html.data(using: .utf8)?.base64EncodedString() else { return } localServer?["/s"] = { request in return .movedPermanently("data:text/html;base64,\(base64)") } try? localServer?.start(in_port_t(serverRandom)) UIApplication.shared.open(shortcutUrl)
The text was updated successfully, but these errors were encountered: