removed method-level [ValidateAntiForgeryToken] attribute as it is now handled by global AutoValidateAntiforgeryTokenFilter, adjusted gitignore to improve filtering of Module and Theme folders in wwwroot and exclude all files in Oqtane.Server/Data

This commit is contained in:
Shaun Walker
2022-04-15 08:01:32 -04:00
parent f6b3874668
commit 1c7380d4cf
3 changed files with 8 additions and 8 deletions

View File

@ -58,7 +58,6 @@ namespace [Owner].[Module].Controllers
}
// POST api/<controller>
[ValidateAntiForgeryToken]
[HttpPost]
[Authorize(Policy = PolicyNames.EditModule)]
public Models.[Module] Post([FromBody] Models.[Module] [Module])
@ -78,7 +77,6 @@ namespace [Owner].[Module].Controllers
}
// PUT api/<controller>/5
[ValidateAntiForgeryToken]
[HttpPut("{id}")]
[Authorize(Policy = PolicyNames.EditModule)]
public Models.[Module] Put(int id, [FromBody] Models.[Module] [Module])
@ -98,7 +96,6 @@ namespace [Owner].[Module].Controllers
}
// DELETE api/<controller>/5
[ValidateAntiForgeryToken]
[HttpDelete("{id}")]
[Authorize(Policy = PolicyNames.EditModule)]
public void Delete(int id)