With controllers I have to use AutoValidateAntiforgeryTokenAttribute in services to enable validating token globally. Are Razor pages provide default token validation and I dont have to anything?
That doesn't disable request verification. It just prevents the hidden field containing the token value from being rendered. Forms submission will result in a 400 Bad Request code. You disable it either globally in Startup, or at page level using the
IgnoreAntiforgeryToken attribute: https://www.learnrazorpages.com/security/request-verification#opting-out