Jamy
03/04/2021, 2:27 AMAuthorization
header to ajax request from tabulator but my configuration is ignored. What is the good syntax ?
tabulator<Any>(
TabulatorOptions(
ajaxURL = "${Api.API_URL}/product",
ajaxConfig = "POST",
...
)
)
Request is a POST
tabulator<Any>(
TabulatorOptions(
ajaxURL = "${Api.API_URL}/product",
ajaxConfig = object : Tabulator.AjaxConfig {
override var method: String = "POST"
override var headers: dynamic = mapOf("Authorization" to token)
},
...
)
)
Request is a GET instead of POST (and Authorization header isn't added)Robert Jaros
03/04/2021, 9:49 AMajaxConfig = obj {
method = "POST"
headers = obj {
Authorization = token
}
}
Jamy
03/05/2021, 2:10 AM