Set right format and allow cors