Skip to content

Commit 989f241

Browse files
authored
Allow extension webhooks to accept OPTIONS requests (#7075)
1 parent 8b927a9 commit 989f241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebJobs.Script.WebHost/Controllers/HostController.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public async Task<IActionResult> SetState([FromBody] string state)
290290
return Accepted();
291291
}
292292

293-
[AcceptVerbs("GET", "POST", "DELETE")]
293+
[AcceptVerbs("GET", "POST", "DELETE", "OPTIONS")]
294294
[Authorize(Policy = PolicyNames.SystemKeyAuthLevel)]
295295
[Route("runtime/webhooks/{extensionName}/{*extra}")]
296296
[RequiresRunningHost]

0 commit comments

Comments
 (0)