Closed jamesbrink closed 10 years ago
Why not use sinatra/cross_origin
? It leads to much cleaner code, does this Rack library provide something additional?
Ah yeah, that might be much cleaner for this. Let me give that a try. Thanks
Much cleaner! Like the spec coverage as well.
Great job @jamesbrink
RFC @doomspork.
This is for issue #20
Need some input on this one. This is tested and works. I went back and forth on how and where to implement this. Let me know if you have any ideas where else this snippet should sit. Also I should be testing the disabled state of CORS. I am not sure how to test the disabled state, It would require a new instance of the app, or to unload the middleware. In any case, need your input :smile: