Modify /menu API to work with cross origin requests.