Ghost/ghost/core/test/unit/server/web
Naz 9b2e36e4fb
Fixed CORS middleware unit test
refs https://github.com/TryGhost/Toolbox/issues/461

- The unit test was never using the "OPTIONS" request method, which did not actually trigger the full logic of the "cors" module used under the hood.
- Using the correct request method triggers all the right pathways and tests the state that's closer to the real world - for example the response does get "ended" instead of calling the "next" middleware.
2022-11-03 11:16:13 +08:00
..
admin Updated admin asset serving for ember-auto-import@2 compatibility (#15128) 2022-08-02 13:43:45 +01:00
api Fixed CORS middleware unit test 2022-11-03 11:16:13 +08:00
parent/middleware Converted Ghost repo into a monorepo 2022-07-20 16:41:05 +02:00
shared/middleware Moved Cache-Control middleware to separate package 2022-08-11 14:14:20 +02:00