cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
AsgeirAlbretsen
Level: Powered On

Custom header not sent when using HTTP action

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: 

 

http_action.png

 

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:

 

http_result.png

 

Here is a link to a Stack Overflow post I made about the issue.

1 REPLY 1
Super User
Super User

Re: Custom header not sent when using HTTP action

HI @AsgeirAlbretsen 

 

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.

Cheers
Manuel

 

 

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,588)