Closed prashant-kiwi closed 4 years ago
same error
Use 1.0.3 version. I have the same error. I believe that u need to have a new version of rack to use rack-cors 1.0.4 So, for old rails/rack versions just use rack-cors 1.0.3
I am seeing the same thing. I am on rack 1.6.11 if that helps.
Problem is here: https://github.com/cyu/rack-cors/blob/e4d4fc362a4315808927011cbe5afcfe5486f17d/lib/rack/cors.rb#L155
Rack::Utils.unescape_path
doesn't exist in Rack 1.x, it requires Rack 2.x
I've pushed up version 1.0.6 (had a mishap with using unescape_path
instead of unescape
😔). Sorry about the inconvenience, but thank you so much creating this issue.
I've also yanked 1.0.4 so that it's no longer available.
@cyu Thank you for pushing up 1.0.6!
this also happens in 1.0.5 (rack >= 1.6.0) for me. after updating to 1.0.6 it seems to work fine please consider disabling 1.0.5 too.
Getting same error after upgrade to rack - 1.6.12
from rack -1.6.11
rack-cors (1.0.5)
From rack-cors (1.0.2)
Github's @dependabot is currently suggesting a bump to 1.0.5, which has this issue.
@cyu could you please yank release 1.0.5 too?
@cyu see above comments about 1.0.5
- causing the same issue... and @dependabot recommending this version.
@mbijon @jpowell this is a damned if you do, damned if you don't situation - I got my hand slapped for yanking 1.0.4.
Maybe I can convince @dependabot to not recommend 1.0.5? Pretty please @dependabot?
@cyu how about releasing a reversion/patch as 1.0.6?
I am getting NoMethodError for 'unescape_path' for Rack::Utils:Module. When I deep dug then found that my project was running on version "1.0.3" but when i deploy the code today then 'rack-cors' gem updated to new version which is "1.0.4"