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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Add Http Response Headers to Portal page?

(1) ShareShare
ReportReport
Posted on by 2

Hi'

Does anyone know how to add http request header content to a web page in Power Apps Portal?

Specifically I'd like to add the Content-Disposition tag to the header as I have a client who requests a dynamically (Liquid/FetchXML) generated CSV-file to be made available for the portal end-users.

The page and Liquid/FetchXML are easy to produce, and i'm able to set the Content-Type to text/csv in the webtemplate for the page. But I can't seen to find anywhere I can add the Content-Disposition to give the file a user friendly file name when downloaded.

Any ideas?

Regards Jan

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi Jan,

    You can refer following link:

    Setup HTTP headers in Power Apps portals - Power Apps | Microsoft Docs

    Use of JSON Type Web Templates in PowerApps Portals | Microsoft Dynamics 365 CRM Tips and Tricks (inogic.com)

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • jrichview Profile Picture
    2 on at
    I've been trying to answer the same question. 
     
    The Microsoft documentation page linked to by the other user's response [https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/cors-support] is entitled "Set up HTTP headers in Power Pages", but ACTUALLY it addresses only a small number of HTTP headers.  They are configured using site settings which implies, but does not clearly state, that they are the only HTTP headers supported. It also must mean that they are added to EVERY page which is not always desirable.
     
    For example, the following http response header
    Clear-Site-Data: "cache"

    You would not want this on every page, but it could be very useful on a custom logout page in certain circumstances.

     The example of JSON web templates did not seem to address the question at all.

     So far I have not seen an answer to this leading me to believe it cannot be done in Power Pages.

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 Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 19 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans