@Andre Haverdings Thank you for reaching out to Microsoft Q&A. Based on your statement, I understand request without 'Origin' header is working as expected (101 response) vs with 'Origin' header, you get 200 response code without body.
This happens when terminate-unmatched-request
is true (by default, this value is true) and Origin
header doesn't match an allowed origin configured in the cors policy. Check docs: CORS configuration issues which has the below note:
Attributes docs:
Review CORS policy and make sure that 'Origin' header is allowed in the policy using allowed-origins
(also refer SO thread for similar discussion). If you still face any issues after validation, feel free to add a comment. We might need to review the entire request and response by enabling a trace (Trace call).
I hope this answers your question and feel free to add a comment if you have any other questions. We would be happy to assist you. Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.