Enabling CORS access
From DreamFactory
Toddappleton (Talk | contribs) |
|||
Line 1: | Line 1: | ||
− | To enable CORS access in DreamFactory | + | To enable CORS access in DreamFactory, log in 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 --' | 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. | drop down box. After that enter your allowed Origin, Paths, Headers, Max Age (browser caching CORS access), and Methods. |
Revision as of 22:32, 15 July 2016
To enable CORS access in DreamFactory, log in 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.