Installing Modules
Opening the companion app and clicking the
Coldbox is powerful out of the box but it is also almost infinitely extensible through modules and your own code base. To make the site ready for XHR calls, we're going to install the CORS module which will handle CORS requests.
Open CommandBox and navigate to the root of your site.
Type
install CORS.Instead of restarting the server, open your browser to https://justenough.local?fwreinit=1 and add the query string
The fwreinit=1 is a setting that ColdBox recognizes to reload the framework. Some code recompiles at run time like every other CF app. Other code, such as modules, is loaded into RAM when the application starts up and therefore changes are only picked up when the app is reinitialized.
Last updated