add cors middleware
remove methodannotationreader namespace fix namespace for server container fix tests fail if with cors credentials header is set to true, implement a reusable preflighted cors method in the controller baseclass, make corsmiddleware private and register it for every request remove uneeded local in cors middleware registratio dont uppercase cors to easily use it from routes fix indention comment fixes explicitely set allow credentials header to false dont depend on better controllers PR, fix that stuff later split cors methods to be in a seperate controller for exposing apis remove protected definitions from apicontroller since controller has it
Showing
- lib/private/appframework/dependencyinjection/dicontainer.php 6 additions, 0 deletionslib/private/appframework/dependencyinjection/dicontainer.php
- lib/private/appframework/middleware/security/corsmiddleware.php 73 additions, 0 deletions...ivate/appframework/middleware/security/corsmiddleware.php
- lib/public/appframework/apicontroller.php 93 additions, 0 deletionslib/public/appframework/apicontroller.php
- lib/public/appframework/controller.php 11 additions, 2 deletionslib/public/appframework/controller.php
- lib/public/appframework/http/response.php 4 additions, 0 deletionslib/public/appframework/http/response.php
- tests/lib/appframework/controller/ApiControllerTest.php 55 additions, 0 deletionstests/lib/appframework/controller/ApiControllerTest.php
- tests/lib/appframework/controller/ControllerTest.php 2 additions, 2 deletionstests/lib/appframework/controller/ControllerTest.php
- tests/lib/appframework/http/ResponseTest.php 1 addition, 1 deletiontests/lib/appframework/http/ResponseTest.php
- tests/lib/appframework/middleware/security/CORSMiddlewareTest.php 77 additions, 0 deletions...b/appframework/middleware/security/CORSMiddlewareTest.php
Loading
Please register or sign in to comment