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

Notifications

Announcements

Community site session details

Community site session details

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

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

(0) ShareShare
ReportReport
Posted on by 61

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
    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
    61 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
    61 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard