K0034
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
Thanks a lot @DaniFoldi
18 replies
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
On Django side
18 replies
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
Fixed
18 replies
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
not sure where I should change thatr
18 replies
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
the bug ended up being in the Cloudflare proxy worker code--
the correct Cloudflare proxy worker was
addEventListener("fetch", (event) => {
event.respondWith(handleRequest(event.request));
});
async function handleRequest(request) {
let url = new URL(request.url);
// where we're proxying to
url.hostname = "fluent-spring.uc.r.appspot.com";
const newRequest = new Request(url.href, request);
newRequest.headers.set("Referer", url.href);
return await fetch(newRequest);
}
18 replies
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
18 replies
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
i think proxy form cloudflare remove some headers
18 replies
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
Now i facing:
Forbidden (403)
CSRF verification failed. Request aborted.
When try to log, but maybe is some Django issue
18 replies
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
It works! You are the best! Thanks a lot!
18 replies
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
don't understand that 😛 Correct me if I wrong but all what I need is add rule to redirect also http and it will works if DNS propagate. Yes?
18 replies
CDCloudflare Developers
•Created by K0034 on 11/28/2024 in #general-help
Redirect from root to www not working
18 replies