Skip to content

fix cors domain for beta and freecodecamp.org - #1

Merged
raisedadead merged 1 commit into
freeCodeCamp:gomixfrom
Em-Ant:fix/set-correct-cors-domains
Jun 20, 2018
Merged

raisedadead merged 1 commit into
freeCodeCamp:gomixfrom
Em-Ant:fix/set-correct-cors-domains

Conversation

@Em-Ant

@Em-Ant Em-Ant commented Mar 24, 2018 •

Copy link
Copy Markdown
Member

add https://www.freecodecamp.org and https://beta.freecodecamp.org to the CORS enabled domains to access the boilerplate. It solves freeCodeCamp/freeCodeCamp#16915

@raisedadead

Copy link
Copy Markdown
Member

@QuincyLarson I would need access on all of the boilerplate repos.

@Em-Ant
Em-Ant force-pushed the fix/set-correct-cors-domains branch 2 times, most recently from 6c3f6f0 to 32e2aa0 Compare March 24, 2018 20:52
@raisedadead

Copy link
Copy Markdown
Member

Ping to @Bouncey as well for above.

Comment thread freeCodeCamp/fcctesting.js Outdated
//res.setHeader('Access-Control-Allow-Origin', 'https://pricey-hugger.gomix.me');
var allowedOrigins = ['https://www.freecodecamp.org', 'https://beta.freecodecamp.org']
var origin = req.headers.origin;
if(allowedOrigins.indexOf(origin) > -1){

This comment was marked as off-topic.

@Em-Ant
Em-Ant force-pushed the fix/set-correct-cors-domains branch 3 times, most recently from 7c60d41 to 73fbcfe Compare March 25, 2018 11:08
@Em-Ant

Em-Ant commented Mar 25, 2018

Copy link
Copy Markdown
Member Author

@Bouncey PR changed. Check it now.

@Em-Ant
Em-Ant force-pushed the fix/set-correct-cors-domains branch from 73fbcfe to daabb0b Compare March 25, 2018 11:15
@QuincyLarson

Copy link
Copy Markdown

@Bouncey Can you re-review this when you get a moment?

@raisedadead
raisedadead merged commit 944fa66 into freeCodeCamp:gomix Jun 20, 2018
Grayman1 pushed a commit to Grayman1/boilerplate-advancednode that referenced this pull request Apr 16, 2021
andreeeaa18 added a commit to andreeeaa18/boilerplate-advancednode that referenced this pull request Apr 29, 2025
marasortiz added a commit to marasortiz/boilerplate-advancednode that referenced this pull request Jun 10, 2025
AlbertoValcarcelCrespo added a commit to AlbertoValcarcelCrespo/boilerplate-advancednode that referenced this pull request Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants