We have an internal security scan that checks the valid headers we have set in IIS. If I run this through Access we do not see the results. If I remove Access service we see the proper values. Is there any way to make sure the headers set on the origin server in IIS present themselves when Access is added. the application owners get emails daily that the application is non-compliant daily, but we need Access for MFA.
Hi @heath.a.knox - have you given your scanner a way to pass Cloudflare Access? Looks like it’s getting blocked by Access; you could provide it with a service token or bypass its IP if known for the test.
I was able to get the worker working for headers, but now we are seeing cookies that are missing some values. We’d like to update the cookie in a worker and have that override the cookies from the origin. Below are the cookies we need to ADD the values at the end of the line in a worker
I’m really a novice on this so I’m not sure where to actually add the cookie details. Does it matter?
async function handleRequest(request) { // Make the headers mutable by re-constructing the Request. request = new Request(request) request.headers.set(“x-my-header”, “custom value”) const URL = “https://examples.cloudflareworkers.com/demos/static/html”
// URL is set up to respond with dummy HTML let response = await fetch(URL, request)
// Make the headers mutable by re-constructing the Response. response = new Response(response.body, response) response.headers.set(“x-my-header”, “custom value”) return response}