spotty-amberS
Refine3y ago
10 replies
spotty-amber

Access control cerbos in production with refine app.

I am using cerbos for my access control and it is working fine I don't have any issue with it during local development. But now I have moved my project to production server and then I have figure out that, now I need to access the cerbos URL from the server because with the local development I can use localhost:3592 and can access the cerbos policies, however; once the app is build and served from the server then when the user access my app they will download the whole JS in their browser because of which now access to cerbos should be from the server. Is there a solution to this or am I confused with the implementation detail?

If I have to access the cerbos policies from a server then my whole app will now be slow just because of the network request to check the policies.
Was this page helpful?