mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-04-09 21:39:02 +02:00
Add options response for pre-flight calls on /upload
This commit is contained in:
parent
f1d2a021ec
commit
36d5db3f29
@ -25,6 +25,14 @@ namespace VoidCat.Controllers
|
||||
_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]
|
||||
[DisableRequestSizeLimit]
|
||||
[DisableFormValueModelBinding]
|
||||
|
Loading…
x
Reference in New Issue
Block a user