From cf08000ba133b6cac6fbaefba12dc0f9a349bd11 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sat, 19 Feb 2022 15:04:28 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0baf416..f1aa719 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ use Fruitcake\Cors\CorsService; $cors = new CorsService([ 'allowedHeaders' => ['x-allowed-header', 'x-other-allowed-header'], 'allowedMethods' => ['DELETE', 'GET', 'POST', 'PUT'], - 'allowedOrigins' => ['http://localhost'], - 'allowedOriginsPatterns' => ['/localhost:\d/', 'https://*.example.com'], + 'allowedOrigins' => ['http://localhost', 'https://*.example.com'], + 'allowedOriginsPatterns' => ['/localhost:\d/'], 'exposedHeaders' => ['Content-Encoding'], 'maxAge' => false, 'supportsCredentials' => false,