Enabling CORS access

From DreamFactory
Jump to: navigation, search
DreamFactoryTutorialsEnabling CORS access
m (Toddappleton moved page DreamFactory/Tutorials/Enabling CORS Access to DreamFactory/Tutorials/Enabling CORS access without leaving a redirect)
(No difference)

Revision as of 19:50, 22 June 2016


To enable CORS access in DreamFactory 2.0, login to the admin console and click on the 'Config' tab. Then click 'CORS' from the left menu. To create a new CORS access rule, click on the plus button ([+]) next to '-- Select CORS Entry --' drop down box. After that enter your allowed Origin, Paths, Headers, Max Age (browser caching CORS access), and Methods. The Paths field lets you control access to specific API paths. For example, if you only want to expose a database service named 'my_db' over CORS, you can put 'api/v2/my_db/*' in the Paths.

Tutorial enable cors.png