Skip to content

Commit

Permalink
enable cors by default grahamjenson#16
Browse files Browse the repository at this point in the history
  • Loading branch information
mac2000 committed Jul 20, 2017
1 parent 57272e5 commit cfe1eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hapi_server.coffee
Original file line number Diff line number Diff line change
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 cfe1eb6

Please sign in to comment.