configures middleware to use rack-cors