Configure a CORS rule for Engagement Messenger

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • Configure a cross-origin resource sharing (CORS) rule to enable cross-domain requests between Engagement Messenger and your website where you want to deploy the messenger.

    시작하기 전에

    Role required: admin

    이 태스크 정보

    Use the Engagement Messenger API and your website URL to create a CORS rule.

    프로시저

    1. Navigate to All > System Web Services > REST > CORS Rules.
    2. Select New.
    3. On the form, fill in the fields.
      표 1. CORS Rule form
      Field Description
      Name Unique name for the CORS rule.
      Application Application scope for this record.
      REST API

      Engagement Messenger REST API that this CORS rule applies to.

      Set this field to Engagement Center API [sn_csm_ec/engagement_center_api].

      Domain

      Domain that sends the request to this REST API. Set this field value to the URL of the website where you want to deploy the messenger.

      For example, https://www.example.com.

      Max age

      Number of seconds to cache the client session. After an initial CORS request, further requests from the same client within this time do not require a preflight message.

      If you do not specify a value, the default value of 0 indicates that all requests require a preflight message.

      HTTP Methods Allowed HTTP methods. Enable the GET and POST methods.
      HTTP Headers

      Comma-separated list of HTTP headers to send in the response. You can leave this field empty.

    4. Select Submit.

    다음에 수행할 작업

    Create HTTP response headers for Engagement Messenger.