secure_headers icon indicating copy to clipboard operation
secure_headers copied to clipboard

Add explicit dependency to 'cgi' for ruby 4.0 support

Open vcsjones opened this issue 1 month ago • 0 comments

Ruby 4.0 (currently preview 2) has removed the default dependency on CGI:

CGI library is removed from the default gems. Now we only provide cgi/escape for the following methods:

We use CGI::Cookie

https://github.com/github/secure_headers/blob/8b1029ca6d9a424b903b5beebcd88cbdadf43f4b/lib/secure_headers/headers/cookie.rb#L63

So we should take an explicit dependency on the cgi gem.

vcsjones avatar Dec 09 '25 22:12 vcsjones