X-Git-Url: https://git.r.bdr.sh/rbdr/generador-de-insultos/blobdiff_plain/4fc8123b78a8b275288fb875254ee1370c0bf59b..ba789de7be7c72749ba37e887c176b244660d3de:/bin/server.js?ds=inline 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) {