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

Enable cors on deploy and apps #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 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.

None yet

2 participants