Multiple data sending issue
vivekmattu002 opened this issue · 1 comments
vivekmattu002 commented
How can we send multiple data in headers?
n1crack commented
the library is updated. see latest changes.
<div>
<vue-finder id='my_vuefinder' :request="request"></vue-finder>
</div>
<script setup>
const request = "http://vuefinder-php.test"
// Or ...
const request = {
// ----- CHANGE ME! -----
// [REQUIRED] Url for development server endpoint
baseUrl: "http://vuefinder-php.test",
// ----- CHANGE ME! -----
// Additional headers & params & body
headers: { "X-ADDITIONAL-HEADER": 'yes' },
params: { additionalParam1: 'yes' },
body: { additionalBody1: ['yes'] },
// And/or transform request callback
transformRequest: req => {
if (req.method === 'get') {
req.params.vf = "1"
}
return req;
},
// XSRF Token header name
xsrfHeaderName: "X-CSRF-TOKEN",
}
</script>