João Pedro De Melo Garrido
08/06/2021, 5:23 PMinstall(CORS) {
method(HttpMethod.Get)
method(<http://HttpMethod.Post|HttpMethod.Post>)
method(HttpMethod.Put)
method(HttpMethod.Delete)
method(HttpMethod.Head)
method(HttpMethod.Options)
header(HttpHeaders.AccessControlAllowHeaders)
header(HttpHeaders.AccessControlAllowOrigin)
header(HttpHeaders.Authorization)
allowCredentials = true
allowSameOrigin = true
anyHost()
}
this is my cors and when i add this line works (obvs cause it accepts text/plain) but dont understand whats happening
allowNonSimpleContentTypes = true
Jilles Soeters
08/06/2021, 6:30 PM