Remove corsHeader() from router
Add corsHeader() to Pipeline()
Previous example didn't handle OPTIONS requests that are a part of CORS implementation
shelf_plus Router can't add middleware to non-specified routes ( by design ), so the best implementation is adding Pipeline with middleware "before" shelf_plus router.
Remove corsHeader() from router Add corsHeader() to Pipeline()
Previous example didn't handle OPTIONS requests that are a part of CORS implementation
shelf_plus Router can't add middleware to non-specified routes ( by design ), so the best implementation is adding Pipeline with middleware "before" shelf_plus router.