diff --git a/test/cors.test.js b/test/cors.test.js index fa53e1f..8819277 100644 --- a/test/cors.test.js +++ b/test/cors.test.js @@ -709,7 +709,7 @@ test('Allow only request from a specific origin using regex', t => { t.plan(8) const fastify = Fastify() - fastify.register(cors, { origin: /(example|other)\.com/gi }) + fastify.register(cors, { origin: /(?:example|other)\.com/giu }) fastify.get('/', (req, reply) => { reply.send('ok')