Closed jonaskahn closed 2 weeks ago
Just add Cors handler before pac4j, should work.
Confirmed. It worked. Thank you Btw, Could you write docs to notice other people?
This is part of handler/pipeline documentation https://jooby.io/#router-pipeline-order
You added a security handler before cors, so browser will never reach cors bc of the security handler running first.
does it make sense?
Yup. It does I missed the docs. In other framewors and language I've never ever care about the order of settings 💀. This is my second time, before that I also figure out to install Jackson before declare router. Aw, thank for your help.
In my project, I setup both CORS and Pac4J like below:
OPTIONS
on protected API it will throw 401, the code will be executeIt will lead to
browser
can never sendOptions method
to complete API calling. Could you explain this ?