Skip to content
Snippets Groups Projects
Commit db5370ae authored by SingLi's avatar SingLi
Browse files

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.
parent 592291a0
No related branches found
No related tags found
No related merge requests found
Api = new Restivus Api = new Restivus
enableCors: false enableCors: true
apiPath: 'hooks/' apiPath: 'hooks/'
auth: auth:
user: -> user: ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment