When accessing an HTML page through the public API endpoint, the request returns HTTP 401 Unauthorized instead of the expected HTML content.
The endpoint should be publicly accessible based on the current configuration in appsettings.json:
"UserApiOptions": {
"RestrictedRoutes": ["/api/private"],
"PublicRoutes": [
"/api/public",
"/invite"
]
}
Request URL example:
https://localhost/api/public/{id}/{guid}/data
Observed behavior:
Browser returns HTTP 401 Unauthorized
Expected behavior:
Requests under /api/public should be accessible without authentication