Authors: Luis Majano, Ernst van der Linden, Paul Marcotte
Based on the ssl interceptor originally developed by Ernst van der Linden
This version of the ssl interceptor uses regular expressions for event pattern matches
and will preserve SES urls by leveraging event.buildLink(). Some small changes to the
configuration setup are required. See notes below.
Add the following interceptor configuration to you coldbox config.
interceptors = [
checkSSL = true,
pattern = ".*"
checkSSL (boolean) - check the current request is https, TRUE by default
pattern (regex) - a regex pattern for events that must use ssl. '.*' by default
examples: .* - all events
^admin - all events beginning with "admin"
- Updated to 3.0 standards
- Updated code for efficiency