1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Add CORS support for buy now buttons

This commit is contained in:
Hillel Coren 2017-03-06 11:27:25 +02:00
parent abd93d31e3
commit d024e08778

View File

@ -73,7 +73,7 @@ Route::get('/auth/{provider}', 'Auth\AuthController@authLogin');
Route::get('/auth_unlink', 'Auth\AuthController@authUnlink');
Route::group(['middleware' => 'cors'], function () {
Route::match(['GET', 'POST'], '/buy_now/{gateway_type?}', 'OnlinePaymentController@handleBuyNow');
Route::match(['GET', 'POST', 'OPTIONS'], '/buy_now/{gateway_type?}', 'OnlinePaymentController@handleBuyNow');
});
Route::post('/hook/email_bounced', 'AppController@emailBounced');