Clarity

 View Only
  • 1.  CORS Error in Chrome

    Posted Nov 30, 2020 02:32 PM
    Hi All,

    We have a NSQL Web Service is being called from SharePoint html page using XMLHttpRequest. 

    It is working fine in the Internet Explorer but while accessing in Chrome we are getting below error:

    Error:
    Access to XMLHttpRequest at 'https://ClarityURL/' from origin 'https://SharePointURL' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource

    on Clarity box..
    We have included SharePoint url in CORS_ALLOW_ORIGIN and  CORS_ALLOW_SUBDOMAINS is true.

    Could you please suggest how can I resolve this..

    Thanks
    Giri



  • 2.  RE: CORS Error in Chrome

    Broadcom Employee
    Posted Dec 03, 2020 09:04 AM
    Hi Giri

    Can you share the cors list you have added and you may need to add the content security also

    ------------------------------
    Thanks & Regards
    Suman Pramanik
    Sr. Principal Support Engineer | Customer Success & Support, Enterprise Software Division
    Broadcom
    ------------------------------



  • 3.  RE: CORS Error in Chrome

    Posted Dec 03, 2020 11:29 AM
    Hi Suman,

    In Clarity Server below are the values for CORS options.

    Thanks
    Giri

    OPTION_CODE NAME VALUE
    CORS_ALLOW_ORIGIN CORS_ALLOW_ORIGIN https://sharepointurl
    CORS_ALLOW_ORIGIN CORS_ALLOW_ORIGIN https://anotehrclarityurl
    CORS_ALLOW_SUBDOMAINS CORS_ALLOW_SUBDOMAINS TRUE
         
    CONTENT_SECURITY_DOMAINS Content Security Policy Domains 'self'
    CONTENT_SECURITY_DOMAINS Content Security Policy Domains cdnjs.cloudflare.com
    CONTENT_SECURITY_DOMAINS Content Security Policy Domains fonts.googleapis.com
    CONTENT_SECURITY_DOMAINS Content Security Policy Domains techdocs.broadcom.com



  • 4.  RE: CORS Error in Chrome

    Broadcom Employee
    Posted Dec 07, 2020 07:29 AM

    Hi Giri

    Can you add the sharepoint url to the content security also and give it a try.

    Regards

    Suman Pramanik 



    ------------------------------
    Thanks & Regards
    Suman Pramanik
    Sr. Principal Support Engineer | Customer Success & Support, Enterprise Software Division
    Broadcom
    ------------------------------



  • 5.  RE: CORS Error in Chrome

    Posted Dec 09, 2020 11:36 AM
    Hi Suman,

    I added the SharePoint url to CONTENT_SECURITY_DOMAINS - Still it is getting same error.

    Do you think whether do we need to change anything on the Browser(Chrome) side too?

    Thanks
    Giri