Add mimetype and cors headers