Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

goniszewski
Copy link
Owner

No description provided.

Signed-off-by: Robert Goniszewski <robertgoniszewski@outlook.com>
@goniszewski goniszewski self-assigned this Apr 8, 2024
@goniszewski goniszewski linked an issue Apr 8, 2024 that may be closed by this pull request
Signed-off-by: Robert Goniszewski <robertgoniszewski@outlook.com>
Copy link

sonarcloud bot commented Apr 10, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@tamaskan
Copy link

tamaskan commented May 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internal Proxy Cookies & docker-latest
2 participants