Skip to content

Instantly share code, notes, and snippets.

@alexbassy
Last active August 18, 2018 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbassy/775c0b4f61139edaa0d17ce22dae7504 to your computer and use it in GitHub Desktop.
Save alexbassy/775c0b4f61139edaa0d17ce22dae7504 to your computer and use it in GitHub Desktop.
'use strict'
const callback = (event, context, callback) => {
const response = {
statusCode: 200,
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Credentials': true
},
body: JSON.stringify({
'message': 'Callback!'
})
}
callback(null, response)
}
module.exports.callback = callback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment