From d77c751db0f9949046942d13781ce86d2955ce48 Mon Sep 17 00:00:00 2001 From: EK Date: Sat, 23 Apr 2016 12:45:45 +0300 Subject: [PATCH] Close #16 --- config/cors-illuminate.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config/cors-illuminate.php b/config/cors-illuminate.php index 911f26c..c461c39 100644 --- a/config/cors-illuminate.php +++ b/config/cors-illuminate.php @@ -101,4 +101,20 @@ */ S::KEY_PRE_FLIGHT_MAX_AGE => 0, + /** + * If allowed methods should be added to pre-flight response when 'simple' method is requested. + */ + S::KEY_FORCE_ADD_METHODS => false, + + /** + * If allowed headers should be added when request headers are 'simple' and + * non of them is 'Content-Type'. + */ + S::KEY_IS_FORCE_ADD_HEADERS => false, + + /** + * If request 'Host' header should be checked against server's origin. + */ + S::KEY_CHECK_HOST_HEADER => false, + ];