diff --git a/config.development.json b/config.development.json index 829a57ef53..7bad04ec4b 100644 --- a/config.development.json +++ b/config.development.json @@ -1,3 +1,7 @@ { - "enableDeveloperExperiments": true + "enableDeveloperExperiments": true, + "url": "http://site.egg", + "admin": { + "url": "http://site.ghost.egg" + } } diff --git a/core/server/web/api/v2/content/routes.js b/core/server/web/api/v2/content/routes.js index 07527a4a2f..ff37e4f8c3 100644 --- a/core/server/web/api/v2/content/routes.js +++ b/core/server/web/api/v2/content/routes.js @@ -6,7 +6,7 @@ const mw = require('./middleware'); module.exports = function apiRoutes() { const router = express.Router(); - router.options('*', cors()); + router.use(cors()); const http = apiv2.http;