request.response.source
now I need to access with request.response.source.payload
. I'm having difficulty identifying when and where that change was introduced. Could someone provide some insight. Thank you.
let refreshData = function () {
server.methods
.search(deepCopy(AllProjectsQuery.query), null, "USE_CACHE")
.then((data) => {
logger.log('info', 'refresh all projects data succeed')
})
.catch((err) => {
logger.log('error', 'refresh all projects data error: %s', JSON.stringify(err))
})
}
access-control-allow-origin
et al. are working ok, but how do I configure Access-Control-Allow-Methods
? I'm currently generating *-methods header in my plugin, but just I'd prefer to use HAPI CORS config for this if possible.