added azure and cors support