Skip to content

Commit

Permalink
Merge pull request #2 from adobe/bug/auth
Browse files Browse the repository at this point in the history
Return 401 on unauthorized
  • Loading branch information
bstopp authored Jan 11, 2024
2 parents e209a08 + d0eda07 commit bbc2540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
const daCtx = await getDaCtx(pathname, req, env);
const authed = await isAuthorized(env, daCtx.org, daCtx.user);
if (!authed) {
return get404();
return daResp({ body: '', status: 401 });
}

if (pathname.startsWith('/source')) {
Expand Down

0 comments on commit bbc2540

Please sign in to comment.