For Workers & Pages, what is the name of the domain?
What is the error number?
none
What is the error message?
none
What is the issue or error you’re encountering
We use Shopify O2O and filter a request in order to translate it with Weglot - the original IP gets lost
What steps have you taken to resolve the issue?
How can we make sure to pass through the original headers in the snippet or worker?
What are the steps to reproduce the issue?
export default {
async fetch(request, env, ctx) {
if (request.headers.has(“weglot-language”)) {
return fetch(request);
}
return fetch(https://render.weglot.io/${request.url}
,
request);
},
};