diff --git a/README.md b/README.md index 8f72e89..34a4b52 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,7 @@ All POST endpoints take JSON-encoded bodies. and querystring arguments, so long as it is hosted at one of the following webmaker desktop domains: * webmaker-desktop-staging.herokuapp.com + * beta.webmaker.org ### Methods diff --git a/makes.js b/makes.js index 3bf83f4..b945407 100644 --- a/makes.js +++ b/makes.js @@ -4,7 +4,7 @@ var urlParse = require('url').parse; var MOFODEV_URL_RE = /^https?:\/\/[A-Za-z0-9_\-]+\.mofodev\.net\//; var HTTPS_MAKES_URL_RE = /^https:\/\/[A-Za-z0-9_\-]+\.makes\.org\//; var GOGGLES_URL_RE = /^http:\/\/[A-Za-z0-9_\-]+\.makes\.org\/goggles\//; -var WEBMAKER_DESKTOP_RE = /^https:\/\/webmaker-desktop-staging\.herokuapp\.com/; +var WEBMAKER_DESKTOP_RE = /^https:\/\/(webmaker-desktop-staging\.herokuapp\.com|beta\.webmaker\.org)\//; var ENDS_WITH_UNDERSCORE_RE = /_$/; function hostnameAndPath(url) {