Customer Portal

Get Involved. Join the Conversation.

Topic

    Manoj Kumar Govindarajan
    How to over come "blocked by CORS policy: No...
    Topic posted April 9, 2019 by Manoj Kumar GovindarajanRed Ribbon: 250+ Points 
    68 Views, 3 Comments
    Title:
    How to over come "blocked by CORS policy: No 'Access-Control-Allow-Origin' header"?
    Content:

    Hi Folks,

    I am calling another application's page via ajax from customer portal  and I got following error message in console

    jquery.min.js:4 Access to XMLHttpRequest at 'https://abc.custhelp.com/app/pagename  ' from origin 'https://xyz.custhelp.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

    Note:

    Even though I tried by including following header in php , it is not working for me.

    header('Access-Control-Allow-Origin: *'); 
    

    can you tell some remedy?

    Comment