From f66d43f347d6938810b377315b4eec7a8505b385 Mon Sep 17 00:00:00 2001 From: smarcet Date: Wed, 28 Oct 2020 15:45:11 -0300 Subject: [PATCH] Fix CORS support for routes Change-Id: I3609b50961bf0c2dc0dab65c86d7b4cd8a8888cb Signed-off-by: smarcet --- app/Http/routes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/routes.php b/app/Http/routes.php index 9ad506a7..c883654e 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -388,7 +388,7 @@ Route::group( Route::get('', 'OAuth2UserApiController@me'); Route::match(['options','put'],'','OAuth2UserApiController@UpdateMe'); Route::group(['prefix' => 'pic'], function () { - Route::put('','OAuth2UserApiController@UpdateMyPic'); + Route::match(['options','put'],'','OAuth2UserApiController@UpdateMyPic'); }); }); @@ -397,7 +397,7 @@ Route::group( }); Route::group(['prefix' => 'user-registration-requests'], function(){ - Route::post('', 'OAuth2UserRegistrationRequestApiController@register'); + Route::match(['options','post'],'', 'OAuth2UserRegistrationRequestApiController@register'); }); // 3rd Party SSO integrations