forked from Kieran/void.cat
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;
|
_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]
|
||||||
|
Loading…
Reference in New Issue
Block a user