Support calls from client / browsers

Most modern browser will issue a pre-flight request with HTTP OPTION method before the actual asynchronous POST.    This adds a CORS supporting option endpoint.
pull/1702/head
SingLi 10 years ago
parent 592291a0eb
commit db5370aede
  1. 2
      packages/rocketchat-integrations/server/api/api.coffee

@ -1,5 +1,5 @@
Api = new Restivus
enableCors: false
enableCors: true
apiPath: 'hooks/'
auth:
user: ->

Loading…
Cancel
Save