mirror of
https://gitlab.com/bramw/baserow.git
synced 2024-11-21 23:37:55 +00:00
8 lines
221 B
JavaScript
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
|
|
}
|