FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...


v1.2.1 Public


All Contributors

Sets the SES and HTML base url on each request in a ColdBox application

This package was created to solve the problem of a ColdBox application using the first HTTP_HOST that came its way for all links in the application. (The specific instance was being pinged by a health check from the base server before requests came in through the DNS.) It sets both the SESBaseUrl and the HTMLBaseUrl on each request.


Couldn't be easier.

box install ses-on-request


That's it. Installing it registers the interceptor. You are good to go.


The interceptor can be configured to include index.cfm in the URL which is required if you're not using URL rewriting. Place the following in your app's /config/Coldbox.cfc to override the includeIndex setting. This requires ColdBox 4.3.0.

moduleSettings = {
    "SESOnRequest" = {
        "includeIndex" = true

Additionally if you want to force SSL, set the forceSSL flag to true.

moduleSettings = {
    "SESOnRequest" = {
        "forceSSL" = true


Thanks goes to these wonderful people (emoji key):

Eric Peterson

? ? ? ?

George Murphy


This project follows the all-contributors specification. Contributions of any kind welcome!

Dependencies (0)

Dev Dependencies (0)

$ box install ses-on-request

No collaborators yet.
  • {{ getFullDate("2015-10-14T12:46:58Z") }}
  • {{ getFullDate("2018-05-02T11:22:04Z") }}
  • 2,610
  • 12,471