Skip to content

Commit

Permalink
Merge pull request #17 from mac2000/master
Browse files Browse the repository at this point in the history
enable cors by default #16
  • Loading branch information
grahamjenson committed Jul 21, 2017
2 parents 57272e5 + cfe1eb6 commit 33cea2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hapi_server.coffee
Expand Up @@ -76,7 +76,7 @@ class HapiGER
init_server: (esm = 'mem') ->
#SETUP SERVER
@_server = new Hapi.Server()
@_server.connection({ port: @options.port });
@_server.connection({ port: @options.port, routes: { cors:true } });
@info = @_server.info

setup_server: ->
Expand Down

0 comments on commit 33cea2e

Please sign in to comment.