Add options response for pre-flight calls on /upload

This commit is contained in:
Kieran 2022-02-26 13:00:12 +00:00
parent f1d2a021ec
commit 36d5db3f29
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -25,6 +25,14 @@ namespace VoidCat.Controllers
_paywallFactory = paywallFactory; _paywallFactory = paywallFactory;
} }
[HttpOptions]
public IActionResult UploadFileOptions()
{
// just return 200 status for pre-flight calls
// manging CORS headers is not managed inside void.cat
return Ok();
}
[HttpPost] [HttpPost]
[DisableRequestSizeLimit] [DisableRequestSizeLimit]
[DisableFormValueModelBinding] [DisableFormValueModelBinding]