We have an web application using dancer2 framework.The website is using https. But in the page, it calls other page using uri_for. i.e The url is generated by uri_for and sending it to template.
The url generated is automatically set ‘http’, so the page has mixed content. And thus doesn’t load.
My question is where is the uri_for located. Why is automatically set ‘http’, how can I specify it to be ‘https’?
Many thanks Wendy
See line 283 in
Dancer2::Core::Request:It obtains the scheme by calling
$self->base, see line 242 :which calls
$self->_common_uri(see line 249) :which calls
$self->scheme, see line 159 :