mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-02-06 05:40:09 +00:00
7 lines
221 B
JavaScript
7 lines
221 B
JavaScript
export default function addPublicAuthTokenHeader(config, publicAuthToken) {
|
|
if (!config.headers) {
|
|
config.headers = {}
|
|
}
|
|
config.headers['Baserow-View-Authorization'] = `JWT ${publicAuthToken}`
|
|
return config
|
|
}
|