fix: cors when content-type is set for simple requests

This commit is contained in:
liyasthomas
2021-08-22 22:44:07 +05:30
parent 5f27b59dc0
commit 294b1a5a7c
5 changed files with 43 additions and 20 deletions

View File

@@ -31,6 +31,9 @@ export type HoppRESTReqBody =
body: string
}
| HoppRESTReqBodyFormData
| {
contentType: null
}
export interface HoppRESTRequest {
v: string