X-Git-Url: https://git.r.bdr.sh/rbdr/generador-de-insultos/blobdiff_plain/4fc8123b78a8b275288fb875254ee1370c0bf59b..00d46287bf00b94b87b11497cfff90eb6985b78f:/bin/server.js diff --git a/bin/server.js b/bin/server.js index 2dbcc1d..00c23bb 100755 --- a/bin/server.js +++ b/bin/server.js @@ -33,6 +33,12 @@ server.route({ }); server.route({ + config: { + cors: { + origin: ['*'], + additionalHeaders: ['cache-control', 'x-requested-with'] + } + }, method: 'GET', path:'/raw', handler: function (request, reply) {