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

fetch-proxy redirect mode support #38

Open
jrestall opened this issue Dec 12, 2024 · 2 comments
Open

fetch-proxy redirect mode support #38

jrestall opened this issue Dec 12, 2024 · 2 comments

Comments

@jrestall
Copy link

I would really like if I could configure the redirect mode and other RequestInit properties as below.

const response = await proxy(request, { redirect: "manual" });

The fetch proxy seems to only respect a few of the init props passed in.

@mjackson
Copy link
Owner

mjackson commented Dec 17, 2024

You make a great point. We should absolutely respect all properties of the request init object in the proxy. I can take a look and get this fixed.

Other than redirect: "manual", were there any other specific properties you were interested in seeing support for?

@jrestall
Copy link
Author

Thanks Michael, redirect is the only one I need, but maybe referrer and referrerPolicy for overriding the referrer in the proxy would be useful. Also signal maybe to support cancelling the proxy request if some other parallel request fails or to support a request timeout.

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

No branches or pull requests

2 participants