1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-01 15:49:51 +00:00
bramw_baserow/web-frontend/modules/database/utils/publicView.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
221 B
JavaScript
Raw Normal View History

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