SWA : API access

Dyt13 206 Reputation points

I have deployed an azure SWA with serverless backend (/api). I’d like some of them for instance :
/api/functionVisibleAll to be accessible from anywhere (so auth = anonymous) and others /api/functionProtected to be accessible from axios call made in the app.
Is it possible to do so ?
I’ve tried changing the authLevel to function but for some reason I can still have access to /api/functionProtected from anywhere.

Can you please help with that ?

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
783 questions
{count} votes