SWA : API access

Dyt13 206 Reputation points
2022-09-30T10:31:02.333+00:00

Hi,
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 ?
Thanks

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