Hello, a little question about ServerFilters.Cors(...
# http4k
r
Hello, a little question about ServerFilters.Cors(corsPolicy) if there's no quick answer I'll post a test case, but if there's a quick, I'll take it before. In an app if i do:
Copy code
ServerFilters.Cors(corsPolicy).then(app)
works ok the app anwers to OPTIONS request but if it do:
Copy code
routes(ServerFilters.Cors(corsPolicy).then(app))
it does not, I get a 405. Any obvious reason why? And why I would want that is because I don't want to apply the same rules to all the endpoints. Thx.