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
app here is the master site and req is the request.
This will get the approot from the request header host field:
approot = guessApproot
Same as above but instead of guessing if links should be https(based on the X-Forwarded-Proto header for example) will only make links https:// if the connection is actually secure.
importNetwork.Wai (requestHeaderHost, isSecure)
approot =ApprootRequest$\_ r ->maybe""
(mappend (if isSecure r then"https://"else"http://") . decodeUtf8)
(requestHeaderHost r)