Add CORS header

Set Flask debug to true

Fix bug