Override Host Header Using Workers

#1

Hello,

Is it possible to implement Host Header Override using Workers?

I am trying to setup Resolve Override and Host Header Override. I have configured this using Page rules similar to the example in the following tutorial.

However, I am trying to set this up using Workers and I am not sure how I can setup Host Header Override using Workers.

0 Likes

#2

See - Not possible to override the Host header on Workers requests - This is not allowed to prevent abuse of Cloudflare’s systems.

0 Likes

#3

But it is possible with the Page Rules, I don’t see why it should be a problem to set up the same thing with Workers.

1 Like

#4

It is only possible via page rules for Enterprise customers since Cloudflare has a legal contract with them and can (more easily) take them to court if there is any fraud or malicious activity coming from their account.

0 Likes

#5

It is allowed for them only to specific Hosts, also via Workers, but only Enterprise as you already said.

PS: Happy birthday! :+1:

3 Likes