top of page
  • Writer's pictureGowtham

Sitecore OrderCloud Headstart Installation Guide - Part 3

Updated: Feb 26

This blog will guide you through the process of creating a blob storage container and uploading the translation file needed by both the Buyer and Seller UI Applications.

  • Right-click on the Blob Containers of the Local Storage account created in the previous part and select “Create Blob Container.”

  • Name the container “ngx-translate”.

create-blob-container
  • Create a virtual directory “i18n” by clicking “New Folder”.

create-virtual-directory
  • Upload the translation file (en.json) located at “src\Middleware\src\Headstart.API\wwwroot\i18n\en.json”.

upload-translation-file
  • Update the CORS settings to avoid Authorization Failure error.

  • Set the container to public access by right-clicking on the “ngx-translate” blob container and selecting “Set Public Access Level.”

set-public-access-level
  • In the pop-up, select “Public read access for container and blobs” and click “Apply”.

public-read-access-for-container-and-blobs
  • Right-click on the “Blob Containers” in the left pane of Azure Storage Explorer and select “Configure CORS Settings.”

configure-cors-settings
  • In the pop-up, click “Add” to add the CORS setting values.

add-cors-settings
  • Add the following values to the CORS rule:

  • Allowed Origins: http://localhost:4200

  • Allowed Headers: x-ms-meta-data,x-ms-meta-target,x-ms-meta-abc

  • Exposed Headers: x-ms-meta-data,x-ms-meta-target,x-ms-meta-abc

  • Click “Save” to save the newly added CORS rule.

add-cors-rule
  • Confirm that the newly added CORS Rule is added on the next window and click on “Save” to save your CORS settings

cors-setting
cors-verification
  • To access the URL, right-click on the “en.json” file in Azure Storage Explorer and click “Copy URL”

  • Open the copied URL in a browser to confirm the CORS settings and validate the steps performed.

cors-url

We have finished setting up the blob storage container, uploading the translation file, and configuring CORS settings for the local installation of Sitecore Order Cloud.


45 views2 comments
bottom of page