Skip to content

Commit

Permalink
Made exampleserver work cross-origin
Browse files Browse the repository at this point in the history
  • Loading branch information
josephg committed May 8, 2012
1 parent 016d881 commit dd0fc8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/exampleserver
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ var server = connect(

var options = {
db: {type: 'none'},
browserChannel: {cors: '*'},
auth: function(client, action) {
// This auth handler rejects any ops bound for docs starting with 'readonly'.
if (action.name === 'submit op' && action.docName.match(/^readonly/)) {
Expand Down

0 comments on commit dd0fc8d

Please sign in to comment.