Skip to content
This repository was archived by the owner on Feb 4, 2018. It is now read-only.

Conversation

@SylvainCorlay
Copy link

@SylvainCorlay SylvainCorlay commented Dec 29, 2016

Tackling binder-project/binder#93 and binder-project/binder#9

CORS settings for deploy and apps can be setup with a cors.conf file in .binder right by web.conf.

@SylvainCorlay SylvainCorlay force-pushed the cors branch 2 times, most recently from 2c8a54e to 0d1573d Compare December 29, 2016 21:45
@SylvainCorlay SylvainCorlay changed the title WIP Enable cors on deploy and apps Enable cors on deploy and apps Dec 29, 2016
@SylvainCorlay
Copy link
Author

Ping @rgbkrk

var path = require('path')
var fs = require('fs')

var contents = fs.readFileSync(path.join(process.env['HOME'], '.binder/cors.conf'), 'utf8')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're using path.join here, you might as well make this path.join(process.env['HOME'], '.binder', 'cors.conf')

@SylvainCorlay
Copy link
Author

Thanks @rgbkrk I now use path.join.

@rgbkrk
Copy link
Member

rgbkrk commented Jan 3, 2017

Looks like the right approach. Since I don't have a hand in operations I can't judge whether this can/should be handled on binder (the deployed version). I certainly like the cors addition!

@SylvainCorlay
Copy link
Author

@freeman-lab do you think that we could get this one in?

@SylvainCorlay
Copy link
Author

Up!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants