On 4 Aug 2011, at 16:18, Tobias Klug wrote:
I am looking for a way to configure Catalyst in a way that all URIs
generated are forced to use https.

Add this to your app class:

around uri_for => sub { my ($orig, $ctx, @args) = @_; my $uri = $ctx-> $orig(@args); $uri->secure(1); $uri };

Cheers
t0m




_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to