Configuration
Overview
You can alter CBWIRE and Livewire's default behavior by overriding settings in your config/ColdBox.cfc file.
autoInjectAssets
Automatically include Livewire's CSS and JavaScript assets. This removes the need to manually add references to wireStyles() in your <head> and wireScripts() at the end of </body> in your ColdBox layout file. Defaults to true.
maxUploadSeconds
The maximum amount of time allowed for uploads to complete.
trimStringValues
wiresLocation
updateEndpoint
Sets the URI endpoint where CBWIRE posts its updates to the server. You might need to change this if you do not have URL rewriting enabled.
showProgressBar
progressBarColor
csrfEnabled
Determines if CSRF token protection is enabled or not. Defaults to false. This will be changed to 'true' in CBWIRE 5.
csrfStorage
CBWIRE uses CSRF tokens to protect incoming requests from bad actors. You can set the wirebox mapping to determine what storage provider is used when storing the CSRF tokens. Defaults to SessionStorage@cbstorages.
moduleRootURL
Override to change the URL root path to CBWIRE.
Last updated
Was this helpful?