We’ve migrated our documentation to a new site, which means some URLs have changed.
Subscriptions

Understanding JS Origins (FAQ)

Understanding JS Origins and its role in Piano's configuration is essential for a secure and reliable web experience. By following the recommended configurations and staying informed about updates, you can ensure that Piano's scripts function correctly while maintaining the highest standards of security.

Q1: What is the significance of JS Origins in Piano's configuration?

A: JS Origins, short for JavaScript Origins, is a crucial aspect of Piano's configuration. It refers to the authorized domains or origins from which JavaScript code (scripts) associated with Piano can be executed. In essence, it ensures the security and reliability of Piano's scripts.

Q2: Why did I encounter issues related to JS Origins?

A: Issues related to JS Origins can occur when the domain or origin of the website where Piano's JavaScript code is hosted is not properly authorized in the JS Origins settings. This can lead to security concerns, as unauthorized execution of scripts poses a risk. We require websites to have their domain explicitly authorized in the JS Origins settings to ensure script execution.

Q3: How can I configure JS Origins to prevent such issues?

A: Configuring JS Origins is crucial to ensure the smooth execution of Piano's scripts. You can set up authorized JavaScript Origins in the User Provider section of Identity Management. By specifying the domains from which Piano's scripts can run, you enhance security and prevent unauthorized script execution.

Websites that do not have their own URL configured in JS Origins settings may experience errors related to the use of User Tokens, preventing users from registering or logging in.

An indicator could be the following error in the browser's console:

Cookie.png

Such issues can be resolved by adding your website URL to the list of authorized JS Origins.

Q4: Where can I find more information on JS Origins and related configurations?

A: For detailed information on configuring JS Origins and other relevant settings, you can refer to Piano's official documentation here.

Last updated: