Error: Failed to make XHR request [0x80070057] Request header field [my-header] is not allowed by Access-Control-Allow-Headers in preflight response #4369
Labels
Area: Outlook
Issue related to Outlook add-ins
Needs: attention 👋
Waiting on Microsoft to provide feedback
Provide required information needed to triage your issue
Unexpected Runtime [Error] [Log] Error: Failed to make XHR request [0x80070057] Request header field [my-header] is not allowed by Access-Control-Allow-Headers in preflight response
Your Environment
Expected behavior
The XmlHttpRequest should complete successfully when triggered by the "OnMessageSend" event.
Current behavior
The preflight request doesn't seem to take the server's return and the POST request gives an error:
"Error: Failed to make XHR request [0x80070057] Request header field [my-header] is not allowed by Access-Control-Allow-Headers in preflight response 0"
Steps to reproduce
Useful logs
For debugging I'm on localhost but I have exactly the same problem on my integration and production environments.
In manifest.xml :
microsoft-officeaddins-allowed.json :
Outlook logs :
Server logs :
Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.
The text was updated successfully, but these errors were encountered: