Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CORS protocol support For Customer Portal

(0) ShareShare
ReportReport
Posted on by 585

Hi

where should i set the flags for CORS for customer portal, i identify HTTP/Access-Control-Allow-Origin in site setting but i'm still getting the error 

any idea

*This post is locked for comments

  • mwm Profile Picture
    58 on at
    RE: CORS protocol support For Customer Portal

    Life would be too easy if links remained static.  Looks like the right place to go for the CORS details is currently

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/add-web-resource#cors-protocol-support

    ( and not  https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/cors-protocol-support )

    Mike

  • Verified answer
    Abbod Hamwi Profile Picture
    585 on at
    RE: CORS protocol support For Customer Portal

    I used them but still getting the error

    i fix it with jsonp data type

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: CORS protocol support For Customer Portal

    Hello,

    Hope this will help you

    docs.microsoft.com/.../cors-protocol-support

  • Abbod Hamwi Profile Picture
    585 on at
    RE: CORS protocol support For Customer Portal

    the setting was

    name: HTTP/Access-Control-Allow-Origin

    value: * (First i tried only the URL i want it but it was not working so i put *)

    Error: No 'Access-Control-Allow-Origin' header is present on the requested resource

  • Suggested answer
    Michel van den Brink Profile Picture
    4,697 on at
    RE: CORS protocol support For Customer Portal

    Hello,

    'HTTP/Access-Control-Allow-Origin' is the correct setting.

    What do you have it set to exactly? And what it the exact error message?

     

    You can either specify specific hosts or use "*" to allow all origins.

    Also don't forget to look at 'HTTP/Access-Control-Allow-Methods' to make sure you are allowing the required method (GET, OPTIONS, POST)

     

    These are all the CORS settings for portals, for reference:

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/cors-protocol-support

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans