account for ajax OPTIONS precheck