Security Warning when using server actions on pages that allows anonymous access

Hi, 

Can you help me on how to avoid "Security Warning
You're exposing a Server Action for public access and without authentication. Consider removing the Anonymous Role from this Screen." warning on pages that allows anonymous access in reactive application. For example I am using the GetPersonalAreaName built in function, however it is not available on client side so I created a server action so I can use it. But when I tried using the created function on a client function or even on a data action, I am having the said error. Thanks in advance.

Solution

Hi Ma. Joy Aropon,

Try to wrap a Server Action call in a Client Action other than ButtonOnClick or similar.

Just tried this approach - it works. If I put a Server Action call directly to ButtonOnClick action it throws aforementioned warning.

Hope this helps

Solution

Can you please share oml