Move index to flask templates and disable CORS