You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since a request can go through a single Cloudflare worker, it is not possible to run dashflare transparently. This is becoming more important after the release of Worker Sites that allow running a full website from the worker.
For this case, #7 introduced the possibility of forwarding the URL directly to the worker. This PR makes the worker stop behaving as a transparent proxy and just analyze the URL received via the x-original-url header.
Still pending:
Document how to set up dashflare with a Worker Site
Maybe publish a small npm module to do the forwarding
For supporting worker sites we hardcoded the status code to 200 since we
don't have access to the status code of the original request. This
allows to forward a custom status code via `x-original-status-code`
header.
Relates to #27.
Signed-off-by: Jorge Luis Betancourt Gonzalez <[email protected]>
Since a request can go through a single Cloudflare worker, it is not possible to run dashflare transparently. This is becoming more important after the release of Worker Sites that allow running a full website from the worker.
For this case, #7 introduced the possibility of forwarding the URL directly to the worker. This PR makes the worker stop behaving as a transparent proxy and just analyze the URL received via the
x-original-url
header.Still pending:
See https://github.com/mre/endler.dev/blob/master/workers-site/index.js#L66-L73, is the only working example of this setup.
The text was updated successfully, but these errors were encountered: