Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

D365 Portal Query | Making a HTTP redirect from portal with post data and setting request headers ex. x-API-Key

Posted on by 105

Hello Portal Experts,

I would like to know the possibility of achieving this.

We have a requirement from our CRM Portal website, user needs to redirect to an external website having 'post data' parameters and few request headers.

Query: to redirect via jQuery/JavaScript the api key should be placed in the JS code which is not recommended as it poses security threat.. What are the possible options here to achieve this functionality.

Regards

  • RE: D365 Portal Query | Making a HTTP redirect from portal with post data and setting request headers ex. x-API-Key

    <<Bump - Getting to top of list, this issue is still open>>

  • RE: D365 Portal Query | Making a HTTP redirect from portal with post data and setting request headers ex. x-API-Key

    Hi Omar,

    Thank you for response..

    Even if we retrieve from site settings by liquid/js, at last that value will be present on the page. and if user check's view-source of that page, he will get the api-key there.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: D365 Portal Query | Making a HTTP redirect from portal with post data and setting request headers ex. x-API-Key

    Hi,

    You can store your API Key in a site setting and query that site setting in your liquid or JS and use it when needed. Your site setting name will be exposed by not its value.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans