Don't apply your filter on swagger routes
if (!req$PATH_INFO %in% c("/__docs__/", "/__swagger__/", "/openapi.json") {
# filter
} else {
# nofilter
}
Or something similar
Don't apply your filter on swagger routes
if (!req$PATH_INFO %in% c("/__docs__/", "/__swagger__/", "/openapi.json") {
# filter
} else {
# nofilter
}
Or something similar