Realtime RLS not working with anon user
Hello, im writing because my realtime subscription doesn’t work anymore since i have created some RLS polices. I got a table named message with some different policies for anon and authenticated users. For authenticated users it’s working well there is no problem, but for anon user i got a special postgres function to verify custom jwt tokens in the request headers.
I’ve setup all the different custom headers for the realtime subscription and it seems do be correctly triggered (postgres logs). But at the end even if my function return true to my policy the realtime does not send me any events. The policy work for normal fetch.
I’ve setup all the different custom headers for the realtime subscription and it seems do be correctly triggered (postgres logs). But at the end even if my function return true to my policy the realtime does not send me any events. The policy work for normal fetch.