Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  1. Fotoware Alto
    • Release Notes
    • End-User Manual
    • Solutions
    • Terminology
    • User Guides
    • API Changelog
  2. Fotoware Veloz
    • Fotoware Veloz releases
    • Managing users and groups
    • Configuring archives
    • Configuring workflows
    • Configuring site behavior
    • Navigating and searching to find your assets
    • Working with your assets
    • Editing asset metadata
    • Uploading files
    • Version Control in Fotoware
    • Albums - Creating and sharing collections
    • Placing assets in a Content Management System (CMS)
    • Working with the Fotoware Pro interface
    • Using the Fotoware plugins
    • Consent management
    • User guide to FotoWeb for iPad (Legacy)
    • Picture conferencing with FotoWeb Screens (Legacy)
    • What's what in Fotoware
    • GDPR
    • Activity Exports
    • Example workflows
  3. Fotostation
    • Getting started with Fotostation
    • Viewing, selecting and sorting files
    • Managing your assets with archives
    • Adding metadata to assets in Fotostation
    • Searching for assets
    • Working with your assets
    • Version Control in Fotostation
    • Automating tasks with Actions
    • Configuring metadata fields and editors
    • Configuring Fotostation
    • Configuring Fotostation for multi-user environments
    • Troubleshooting Fotostation
  4. Fotoware Flow
    • About Flow
    • Getting started
    • Flow dictionary
  5. Fotoware On-premises
    • Fotoware On-premises releases
    • Getting started
    • Index Manager
    • FotoWeb
    • Color Factory
    • Connect
    • Operations Center Guide
  6. Integrations and APIs
    • Fotoware Alto API
    • Fotoware Veloz and On-premises API
  7. Fotoware Mobile
    • User guide for Fotoware Mobile for iPhone and Android
    • User guide to FotoWeb for iPad (Legacy)
    • User guide to FotoWeb for iPhone and Android (Legacy)

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

Support

Table of Contents

Note CSP in Fotoware Note CSP in the Integration Note CORS in Fotoware
  • Home
  • Integrations and APIs
  • Fotoware Veloz and On-premises API
  • User Interface Integrations

CSP, CORS, and User Interface integrations

09. February 2026

Elaine Foley

Table of Contents

Note CSP in Fotoware Note CSP in the Integration Note CORS in Fotoware

Cross-site scripting protection mechanisms in browsers are made to protect users against malicious code when embedding content and scripts from external sources (as in external domain names). As most integrations will be hosted on a separate domain, such mechanisms often take effect.

Note

We strongly discourage building integrations that rely on browser extensions which override, modify, or disable Content Security Policy (CSP), as this can expose users to significant security risks.

 

 

CSP in Fotoware 

CSP (Content Security Policy) is a security mechanism that controls the sources from which external content can be loaded into an HTML page. Typically, it should be configured so that content can only be loaded from specific trusted sources, ideally only from the same domain as the page. Fotoware also has strict CSP rules that allow embedding only content from the same domain and specific additional domains.

When registering a user interface integration with Fotoware, the domain portion of the integration's URL is automatically added to Fotoware's CSP rules. 

The integration might not work if it redirects to pages hosted on other domains.

If a third-party website used in a UII redirects to a different domain, then the destination domain may be blocked by CSP. As a remedy, use the final URL in the UII configuration, so it is allowed by CSP.

Note

CSP in Fotoware does NOT automatically protect the integration from cross-site scripting (XSS) attacks or insertion of malicious content via UII URL parameters containing user input, such as asset metadata values.

  • Always carefully construct URL patterns for UIIs to secure the integration against XSS.
  • Validate all data that is received via the URL in the UII.
  • Enable CSP within the UII, if possible, but do not rely that the user's browser supports UII (all modern browsers support UII by default). If possible, disable inline JavaScript and JavaScript URLs.
  • NEVER directly redirect to a full URL taken from a metadata field.
 

 

CSP in the Integration

A website embedded as a UII may also prevent Fotoware from embedding it, making it unsuitable as a UII. This is a problem specifically when trying to embed third-party websites that the integrator does not control, such as Google Maps or Wikipedia.

  • When building a bespoke integration that is to be embedded as a UII, make sure that the frame-ancestors CSP directive of the integration does not prevent such embedding by either not using this directive, setting it to * to allow embedding in all domains, or setting it to explicitly allow embedding into Fotoware (requires that the domain of the Fotoware site is known).
  • When embedding a third-party website as a UII, be aware that it may have a content security policy that prevents embedding in Fotoware or may prevent embedding altogether. Google Maps and YouTube are known examples of websites that prevent embedding of the main websites (but do support embedding via special embedding URIs). For more information, consult the documentation of any external websites or web applications you would like to embed.
    Embedding third-party websites may require paid subscriptions, and some may display ads or track users (with privacy implications). Even if a third-party website does not prevent embedding via CSP, this can change at any time and without warning, so your UII may stop functioning at any time.

Note

CSP rules in Fotoware have a long cache time, meaning newly registered UIIs may not work for some time. Deleting the browser cache does not help in this instance.

 

 

CORS in Fotoware 

A user interface integration can use the API to access resources in Fotoware. If the integration has a back-end (server), then the back-end can generally make such API requests. However, making requests to the Fotoware API directly from the front-end (the web browser) requires Cross-Origin Resource Sharing (CORS) to be enabled.

  • In Fotoware Veloz, CORS can be enabled for the domain of a user interface integration by enabling the Enable CORS option in the application registration. 
  • In Fotoware On-premises, see Enabling CORS.

A UII is usually loaded from a different origin domain than the Fotoware site. Therefore, it is not possible to make API requests to Fotoware directly from JavaScript due to the browser's same-origin policy. To make API requests from a UII, the following options exist:

  1. Make API requests from a back-end: If the UII is supported by a back-end server on the origin domain it is loaded from, then it can make direct requests to this back-end, which can, in turn, make API requests to Fotoware.
  2. Enable CORS: By enabling cross-origin resource sharing on the Fotoware site, the UII's origin domain can make API requests directly to Fotoware from JavaScript.
web integration security

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Enabling Cross-Origin Resource Sharing (CORS) in Fotoware
  • User Interface Integrations - an overview
  • Tools to test webhook requests
eco-lighthouse-miljøfyrtårn

Company

  • About us
  • Resellers
  • Careers
  • Contact us

Help & support

  • Support center
  • Consultancy
  • Tech partners
  • Fotostation
  • System status

Trust Center

  • Legal
  • Security
  • Sustainability & ESG

Locations

Fotoware AS (HQ)
Tollbugata 35
0157 OSLO
Norway
Fotoware Switzerland AG
Brown Boveri Str.7
5400 Baden
Switzerland

Copyright 2026 Fotoware All rights reserved.

  • Terms of service
  • Privacy policy
  • Cookie policy

Knowledge Base Software powered by Helpjuice

Expand