kluck
09/26/2018, 1:06 PMhead {
styleLink(url(MainCss))
}
And for my style definition:
@Location("/styles/main.css")
object MainCss
fun Route.styles() {
get<MainCss> {
call.respond(call.resolveResource("app.css")!!)
}
}
This works correctly without SSL, but when I start using https, the browser wouldn't load my css, as it's presented using basic http (here's my response):
<head>
<link rel="Stylesheet" type="text/css" href="<http://my.domain.com/styles/main.css>">
</head>
Any idea what I should modify to make it https friendly?christophsturm
09/26/2018, 1:07 PMhref="://my.domain.com/styles/main.css"
kluck
09/26/2018, 1:16 PMDeactivated User
09/26/2018, 1:17 PM//my.domain.com/styles/main.css
is the one to specify a different domain while keeping he protocol
/styles/main.css
for the same domainDeactivated User
09/26/2018, 1:19 PMDeactivated User
09/26/2018, 1:24 PMstyleLink(url(MainCss()) {
protocol = URLProtocol.createOrDefault(request.origin.scheme)
})
kluck
09/26/2018, 1:25 PM