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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Event Portal CORS policy

(0) ShareShare
ReportReport
Posted on by

Hi

I'm getting the following error

Access to manifest at 'xxxxxxxx-media.azureedge.net/.../manifest.json from origin 'yyyyyyyyyyy.microsoftcrmportals.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://www.xxxxxxxx.com' that is not equal to the supplied origin.

I've added the Access-Control-Allow-Origin in the site settings by giving it the name HTTP/Access-Control-Allow-Origin and giving it the first URL in the error message.

However it's not paying any attention what I have done, and is still displaying the same error message every time.

Can anyone explain what is going on?

Thanks

I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at
    RE: Event Portal CORS policy

    Hi LeeMC2021,

    Are you using Event Portal? 

    I didn't find any file named manifest.json after searching through event website folders.   

    HTTP/Access-Control-Allow-Origin will allow external website to get access to our portal data, while it seems that your situation is: your portal are trying to get data from "http://xxxxxxxx-media.azureedge.net/"

    As far as I know, http://xxxxxxxx.azureedge.net/ is only used to store images or form loader script, and our portal will be whitelisted by default.

    Could you share a screenshot about the error? (Try to remove the URL from source code of your marketing page or event website.)

    Regards,

    Clofly

  • Community Member Profile Picture
    on at
    RE: Event Portal CORS policy

    Thank you for your reply

    I am using Event Portal

    The file Manifest.json  is a file it cannot find externally.

    I cannot screenshot the error as I want to hide the company URL's - the error is as typed.

    I have copied some existing templates to the Event Portal - these work elsewhere in the CRM (ie for Marketing Pages) - they just do not work in Event Portal

    Thanks

  • Community Member Profile Picture
    on at
    RE: Event Portal CORS policy

    Could an Admin please contact me regarding my reply which has apparently been blocked?

  • Community Member Profile Picture
    on at
    RE: Event Portal CORS policy

    Thanks for replying

    I am using Event Portal

    The manifest.json file is one that I am trying to contact externally

    I cannot give a screenshot as I want to hide the urls I am using - the error is as typed.

    Thank you

  • cloflyMao Profile Picture
    25,210 on at
    RE: Event Portal CORS policy

    Hi LeeMC2021,

    In Windows, we can use Paint App and its color-filled rectangle to hide sensitive information of picture.

    What do some existing templates mean? Do they refer to page templates?

    If so, event website is built with Angular, and portal hosted event website is associated with some dedicated page templates, therefore, it may doesn't work if we add other page template to it.(I believe the Manifest.json file is not required to event website.)

    Could you let me know what customization would you like to add?

    Regards,

    Clofly

  • Community Member Profile Picture
    on at
    RE: Event Portal CORS policy

    The existing templates are a header and footer which the company would like me to add.

    They have external links to aid with display icons, css and javascript to display.

    I've now changed a few things around early this morning, and the previous error has now gone although I'm now getting a different problem - though console isn't showing an appropriate error (or at least I've not identified it)

    The page now displays, but there are some dropdown JavaScript menu's which flicker then get replaced with just a plain panel.

    Also the menu items do not scroll up with the rest of the page and remain stationary.

  • cloflyMao Profile Picture
    25,210 on at
    RE: Event Portal CORS policy

    Which page is more similar to your page?

    pastedimage1611650930206v1.png

    pastedimage1611650948491v2.png

    "The page now displays, but there are some dropdown JavaScript menu's which flicker then get replaced with just a plain panel.

    Also the menu items do not scroll up with the rest of the page and remain stationary."

    From issues you encountered, it seems that some CSS rules were changed improperly.

    Here is source code of the default header, you could overwrite the modified template if necessary..

    {% assign homeurl = website.adx_partialurl %}
    
    {% if request.params['URL'] == '/SignIn'%}
    
    {% else %}
    
    {% endif %}
    
    {% if user %}
      
    {% endif %}
    
    
    
    {% assign current_page = page.adx_partialurl %}
    {% assign sr_page = sitemarkers["Search"].url | remove: '/' %}
    {% assign forum_page = sitemarkers["Forums"].url | remove: '/' %}
    {% if current_page == sr_page or current_page == forum_page %}
      
    {% if current_page == sr_page %}

    {% editable snippets 'Search/Title' default: resx["Discover_Contoso"] %}

    {% include 'Search' %} {% endif %}
    {% endif %}

    However, I think your situation would be more similar to the second screenshot. If so, header and footer are not applicable to pages of event website.

    All sections(or pages) of event website(like screenshot 1) can be only customized via local development, please refer to this tutorial if my guess fits your case.(And you can find other tutorials related to the topic in the author's blog posts.)

    https://community.dynamics.com/crm/b/misscrm360exploration/posts/tutorial-customize-and-deploy-dynamics-365-marketing-event-management-or-other-portal

    Regards,

    Clofly

  • Community Member Profile Picture
    on at
    RE: Event Portal CORS policy

    I am displaying events, however I am using my own bespoke header and footer. It is only the header and footer that I'm trying to change.

    I've deactivated any existing css files in the system - as they where overwriting some of what I was adding (It was adding it's additional linkedin and twitter images in addition to the ones I have)

    I've removed anything from the Nav and Footer form the angular download (and uploaded it to the system).

    I've updated the default header and footer templates inside the CRM with my own code.

    The footer is fine, but there is a link with a modal response, and a series of links which shows a new div with menu items.

    The link with the modal response only shows the modal not the links in it.

    The series of links shows the banner, but not the links. Although the links do flicker and disappear at the start, and the actual link themselves seems to be there but the words of the link are not viable.

    Also that series of links does not scroll up with the rest of the header, and appears over the events when I scroll the page.

    Either some of my css (or js) references are being blocked over overridden.

    Thanks

  • cloflyMao Profile Picture
    25,210 on at
    RE: Event Portal CORS policy

    Hi LeeMC2021,

    If will be really helpful to me to analyze your issues if some core code or picture could be shared.

    Please open console to check whether any js or css is blocked.

    As per my understanding, it seems that these issues are related to CSS or HTML issue, but if is difficult to get more information from the text of description.

    Maybe I could answer to this issue:

    Also that series of links does not scroll up with the rest of the header, and appears over the events when I scroll the page.

    Make sure the series of links are added within header component.

    Regards,

    Clofly

  • Community Member Profile Picture
    on at
    RE: Event Portal CORS policy

    The links are in the header

    Below is what I think the relevant error messages are

    4718.error.PNG

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 152 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 103

#3
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 74

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans