Skip to content

Commit 719b410

Browse files
authored
Merge pull request #848 from LearningLocker/issue/754
Remove custom CORS routes
2 parents 819b3c9 + ee83cc9 commit 719b410

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

app/routes.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,6 @@
458458
return $bridgedResponse;
459459
});
460460

461-
//Add OPTIONS routes for all defined xAPI and api routes
462-
foreach( Route::getRoutes()->getIterator() as $route ){
463-
if( $route->getPrefix() === 'data/xAPI' || $route->getPrefix() === 'api/v1' ){
464-
Route::options($route->getUri(), 'Controllers\API\Base@CORSOptions');
465-
}
466-
}
467-
468-
469461
/*
470462
|------------------------------------------------------------------
471463
| For routes that don't exist

0 commit comments

Comments
 (0)