I'm building a Flow which will send an HTTP POST request to my server. It sends a file, as well as some additional information through a header called "Email-To". The action looks like this:
The CORS on my NodeJS server looks like this:
res.header('Access-Control-Allow-Origin', '*');res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept, Email-To');res.header('Access-Control-Allow-Methods','GET, POST');
The "Email-To" header is always undefined when I send the HTTP request using Flow, but if I send an identical request using a different program like Postman, I can access the header. Does anyone know why my Flow headers seem to always be undefined?
Response from running the flow looks like this:
Here is a link to a Stack Overflow post I made about the issue.
I'm probably missing something but, you should include the "Email-to" in the header in the HTTP action if you want to achieve that.
If I have answered your question, please mark your post as Solved.If you like my response, please give it a Thumbs Up.CheersManuel
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.