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
We are excited to announce the launch of Power Virtual Agents Community. Check it out now!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!