### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

Reproducible with https://github.com/localstack/localstack-terraform-samples/tree/master/apigatewayv2-http-referer-header

Describe here https://github.com/localstack/localstack/issues/5833

### Expected Behavior

Use of the `Referer` header should be consistent across method resources.

### How are you starting LocalStack?

With a `docker run` command

### Steps To Reproduce

#### How are you starting localstack (e.g., `bin/localstack` command, arguments, or `docker-compose.yml`)

    docker run localstack/localstack

Run the example https://github.com/localstack/localstack-terraform-samples/tree/master/apigatewayv2-http-referer-header


### Environment

```markdown
- OS: 
- LocalStack:
```


### Anything else?

_No response_
try:
        service = extract_service_name_from_auth_header(headers)
        assert service
        result = service, get_service_port_for_account(service, headers)
    except Exception:
        pass
    result_before = result
    
    if host.endswith("cloudfront.net"):
        path = path or "/"
        result = "cloudfront", config.service_port("cloudfront")
    elif target.startswith("AWSCognitoIdentityProviderService") or "cognito-idp." in host:
        result = "cognito-idp", config.service_port("cognito-idp")
    elif target.startswith("AWSCognitoIdentityService") or "cognito-identity." in host:
        result = "cognito-identity", config.service_port("cognito-identity")
    elif result[0] == "s3" and path.startswith(S3CONTROL_COMMON_PATH):
        result = "s3control", config.service_port("s3control")
    elif result[0] == "s3" or uses_host_addressing(headers):
        result = "s3", config.service_port("s3")
    elif result[0] == "states" in auth_header or host.startswith("states."):
        result = "stepfunctions", config.service_port("stepfunctions")
    elif "route53." in host:
        result = "route53", config.service_port("route53")
    elif result[0] == "monitoring":
        result = "cloudwatch", config.service_port("cloudwatch")
    elif result[0] == "ses":
        if path.startswith("/v2"):
            result = "sesv2", config.service_port("sesv2")
    elif result[0] == "email":
        result = "ses", config.service_port("ses")