Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Hi. I've setup casdoor with almost default configs (only changed the database), it's all working with built-inf fronted. The problem I'm facing is with vue-python sdk example. I've setup everything, login works but I get this error while trying to display user info.:

fail: {msg: 'casdoorUser session key does not exist', status: 'error'}msg: "casdoorUser session key does not exist"status: "error"[[Prototype]]: Object```

What could I be doing wrong?
When I try to print `session.keys()` i just get `dict_keys([])`
4views
2users
1 minread

Did you change the code? if yes, what have you changed, provide it

Not really, only configs to connect to casdoor. I have an update though. It work on local network but starts to fail when I proxy the example to a domain instead of ip. I will test further today but I can't find any reason why it might be failing. Could it be CORS having a problem with domain name vs ip? Or will it work locally but have problems when on public IP? I'm kinda new to web dev and i was fighting with CORS many times now.

show your 403 request header like:

0C0F_0M7RK5ID21DY2.png

I need to see headers like Host, Referer, Origin

Did you call casdoor backend API (in domain A) from another app's frontend (domain B)?

1 / 4
Oct 2023