Unfortunately, it seems not to be enough, and we're still having the issue with Cloudflare when a response is modified by corsify. A solution we found and implemented is to recreate a response by using new Response(...).
Applying the fix here.
Related Issue
Link to the related issue: related to #242
Type of Change (select one and follow subtasks)
[x] Bug fix (non-breaking change which fixes an issue)
Description
A fix was implemented in https://github.com/kwhitley/itty-router/commit/74f63abb25d12666e7c05e5e82fcf7432f8dbda4 to clone the response in
corsify
in order to avoid this error:Unfortunately, it seems not to be enough, and we're still having the issue with Cloudflare when a response is modified by
corsify
. A solution we found and implemented is to recreate a response by usingnew Response(...)
.Applying the fix here.
Related Issue
Link to the related issue: related to #242
Type of Change (select one and follow subtasks)