Redirects: You can now conditionally set headers in redirect responses, allowing for more control over the headers that are sent. This enhancement addresses the possibility of overriding default headers, improving security and flexibility.
Improvements
Code Quality: The code has been refactored to use modern JavaScript features like padStart and String.prototype.repeat, making it cleaner and easier to read. These improvements enhance maintainability without changing any functionality.
Fixes
Fix the issue of overly broad Content Security Policy (CSP) headers in redirect responses. This change ensures that the headers are set correctly, enhancing security against potential attacks.
Others
Revert the previous change that conditionally set headers in redirect responses. This action is taken to address concerns raised in the community.