In the ValuesController there is an attribute Authorize
if you remove it, then it will work as home page.
The Authorize
attribute just prevent an anonymous users from accessing the ValuesController
.
to work with this attribute, you need first to register a user, and then login to get user's token, then you can use the token to authorize your self and get access .
In this page Individual-accounts-in-web-api is explained all what do you need
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…