Switched to rack-cors middleware.