Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleRecommendation

Digizuite is recommended to have CORS setup in order to avoid malicious requests.


Digizuite DAM Center

CORS can be enabled by editing Digizuite web.config and adding the following line under appSettings:

...

Code Block
languagexml
<add key="Access-Control-Allow-Origin" value="https://dc.digizuite.com https://mm.digizuite.com https://other-client-intergation-app.digizuite.com" />


Digizuite Core and Commenting Services

Edit the files DZ_INSTALL_PATH\Comment\appsettings.json and DZ_INSTALL_PATH\DigizuiteCore\appsettings.json and edit the following section

Code Block
languagejs
"CORS":  {
   "AllowOrigins":  [ ],
   "AllowCredentials":  false
}

to

Code Block
languagejs
"CORS":  {
   "AllowOrigins":  [ "http://allowed_1.example.com:4200", "https://allowed_2.example.com" ],
   "AllowCredentials":  false
}


After editing the files, restart the DC site from IIS Manager.