This repository has been archived by the owner. It is now read-only.
Fix Issues #136 - Access-Control-Allow-Origin #137
Merged
Conversation
|
@humphd if you want to r? :) |
|
R+ from me |
|
Other than your failing test which is probably due to the new types for allowed somaina |
| @@ -8,8 +8,8 @@ export NODE_ENV="development" | |||
| export PORT=9090 | |||
|
|
|||
| # Allowed CORS domains | |||
| # Use comma for more domains e.g. http://localhost:5001,http://localhost:7777 | |||
| export ALLOWED_CORS_DOMAINS="http://localhost:5001" | |||
| # Add domain that we allowed in the array | |||
humphd
Jul 22, 2014
Member
"Add domains that we allow (e.g., for /api/sync route)"
"Add domains that we allow (e.g., for /api/sync route)"
|
One nit, plus deal with Travis as Matt suggests. Awesome work! |
|
@humphd that test either need to be skip or remove until I know how to fake |
| @@ -3,11 +3,19 @@ var request = require('request'); | |||
| var util = require('../lib/util'); | |||
| var env = require('../../server/lib/environment'); | |||
| var ALLOW_DOMAINS = process.env.ALLOWED_CORS_DOMAINS || env.get("ALLOWED_CORS_DOMAINS"); | |||
| var firstDomain; | |||
sedge
Jul 23, 2014
Contributor
Is this variable used in any other tests? If not, move it down inside the it() block.
Is this variable used in any other tests? If not, move it down inside the it() block.
|
Rebase then r+ |
73d9999
into
mozilla:master
1 check was pending
1 check was pending
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Closes #136