Smile CDR v2024.05.PRE
On this page:
   45.27    Credentials 45.29    System to System Data Exchange   

45.28.1Cross-Origin Resource Sharing (CORS)

 

The Cross-Origin Resource Sharing (CORS) configuration category includes the following configurable options:

  • CORS Allowed Request Headers

  • CORS Enabled

  • CORS Origins

45.28.2Property: CORS Allowed Request Headers

 
Property Name CORS Allowed Request Headers
Property Key
Property Type STRING
Description A comma-separated list of allowable request headers for the CORS filter. These will be added in addition to the default headers required for Smile CDR's default functionality.
Applies to Modules
  • CDS Hooks REST Endpoint
  • FHIR Gateway REST Endpoint
  • FHIR REST Endpoint (All FHIR Versions)
  • FHIR REST Endpoint (DSTU2 - Deprecated)
  • FHIR REST Endpoint (R3 - Deprecated)
  • FHIR REST Endpoint (R4 - Deprecated)
  • Hybrid Providers REST Endpoint
  • JSON Admin API
  • MDM UI
  • Package Registry Endpoint
  • Payer to Payer
  • SMART Outbound Security
  • appSphere
Default Value (no default)
Example Property
module.[MODULE_ID].config.cors.allowed_headers = 

45.28.3Property: CORS Enabled

 
Property Name CORS Enabled
Property Key
Property Type BOOLEAN
Description Should this endpoint allow the use of CORS? Enable this item only if you understand what it is doing.
Applies to Modules
  • CDS Hooks REST Endpoint
  • FHIR Gateway REST Endpoint
  • FHIR REST Endpoint (All FHIR Versions)
  • FHIR REST Endpoint (DSTU2 - Deprecated)
  • FHIR REST Endpoint (R3 - Deprecated)
  • FHIR REST Endpoint (R4 - Deprecated)
  • Hybrid Providers REST Endpoint
  • JSON Admin API
  • MDM UI
  • Package Registry Endpoint
  • Payer to Payer
  • SMART Outbound Security
  • appSphere
Default Value false
Example Property
module.[MODULE_ID].config.cors.enable = false

45.28.4Property: CORS Origins

 
Property Name CORS Origins
Property Key
Property Type STRING
Description A comma-separated list of allowable origins for the CORS filter. For example: https://example.com, https://try.smilecdr.com:9201. You may also use the wildcard value * to allow CORS for all domains, however this is generally not considered a good practice for production systems serving sensitive data.
Applies to Modules
  • CDS Hooks REST Endpoint
  • FHIR Gateway REST Endpoint
  • FHIR REST Endpoint (All FHIR Versions)
  • FHIR REST Endpoint (DSTU2 - Deprecated)
  • FHIR REST Endpoint (R3 - Deprecated)
  • FHIR REST Endpoint (R4 - Deprecated)
  • Hybrid Providers REST Endpoint
  • JSON Admin API
  • MDM UI
  • Package Registry Endpoint
  • Payer to Payer
  • SMART Outbound Security
  • appSphere
Default Value *
Example Property
module.[MODULE_ID].config.cors.origins = *
   45.27    Credentials 45.29    System to System Data Exchange