grimoire icon indicating copy to clipboard operation
grimoire copied to clipboard

feat: allow to specify custom headers for requests to internal proxy

Open goniszewski opened this issue 1 year ago • 2 comments

goniszewski avatar Apr 08 '24 19:04 goniszewski

tested it today and it is working :-) had to remove "COPY --from=build /app/pb_migrations /app/pb_migrations" from the Dockerfile ( "/app/pb_migrations": not found ) added "proxyReq: (proxyReq, req, res) => { proxyReq.setHeader('myheader', 'secretvalue'); }," to server.js and "pb.beforeSend = function (url, options) {options.headers['myheader'] = 'secretvalue'; return { url, options };}" to pb.ts

tamaskan avatar May 01 '24 09:05 tamaskan