Updating directives to reduce need for preflight cors requests