web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Custom Connector: spec...
Power Apps
Answered

Custom Connector: special Header 'Content-type' not sent

(0) ShareShare
ReportReport
Posted on by 65

I've got a custom connector and one action needs a special header

"Content-Type": "application/x-www-form-urlencoded"

so I defined it:

Bildschirmfoto 2019-10-04 um 21.31.53.png

 

The test function works without error: 

Bildschirmfoto 2019-10-04 um 21.36.39.png  Bildschirmfoto 2019-10-04 um 21.36.51.png

 

problem:  

 

If I use this action i my PowerApp, the "Content-Type" is missing in the header and I get the error 415

{
  "timestamp": "2019-10-04T18:59:26.658+0000",
  "status": 415,
  "error": "Unsupported Media Type",
  "message": "Content type '' not supported",
  "path": "/auth/token"
}
 
I've testet the header-parameter with
  • visibility=internal (and "application/x-www-form-urlencoded" ist the default value)
  • Visibility=non and transfer the "application/x-www-form-urlencoded" as a parameter to the action

 

Any ideas?

Frank

I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Frank37 ,

     

    Please check if below blog could help:

    https://www.engineeredcode.com/blog/powerapps-portals-support-for-x-content-type-options-http-header

     

    Regards,

    Mona

  • Frank37 Profile Picture
    65 on at

    Dear Mona,

     

    thanx for your reply.

    But your solution belongs only to "PowerApps Portals" (the PowerApp is the host) and my PowerApp is the client (and the server supports the X-content-type option)

     

    Frank

  • Verified answer
    Frank37 Profile Picture
    65 on at

    Here is the solution from GonzaloR (worked for me 👍)

     

    https://powerusers.microsoft.com/t5/General-Power-Automate/Custom-connector-action-with-x-www-form-urlencoded-content-type/m-p/397616/highlight/false#M33774

     

    1. Click "New Policy"
    2. Name your policy
    3. Select "Set HTTP header"
    4. Select the Operations (Actions) that require this header
    5. Header name: "content-type"
    6. Header Value: "application/x-www-form-urlencoded"
    7. Action if header exists: "override"
    8. Run policy on: "Request"

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard