How to develop on localhost with different app sep...
# talk-kratos
a
How to develop on localhost with different app separated by ports? Is it possible at all or I need a proxy(nginx) to route all of them to a single DNS? 1. kratos app -> localhost:4433 2. flow ui app -> localhost:4455 3. web-app -> localhost:4000 • web-app (4000) calls kratos to get login UI and token is created but for port 4433 and web-app on port 4000 can not use this token. As a result I get 403 Forbidden (CSRF violation) Any advice appreciated, ty
m
Hello @adamant-processor-34239 should be possible, see the CSRF doc: https://www.ory.sh/docs/troubleshooting/csrf So if you forward the header it should work. Let me know if that helped.
a
@magnificent-energy-493 I got the cookie but It uses SameSite=Lax, even then running kratos serve --dev. As a result browser does not send cookie in request. Is that a bug? https://github.com/ory/kratos/issues/2617