1
0
mirror of https://gitlab.com/bramw/baserow.git synced 2024-11-21 23:37:55 +00:00
bramw_baserow/web-frontend/modules/database/utils/publicView.js

8 lines
221 B
JavaScript

export default function addPublicAuthTokenHeader(config, publicAuthToken) {
if (!config.headers) {
config.headers = {}
}
config.headers['Baserow-View-Authorization'] = `JWT ${publicAuthToken}`
return config
}