Skip to content

Commit

Permalink
Adding configurable domain restritions for postMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
jolzee committed May 29, 2020
1 parent 021c5c6 commit 9400865
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ const config = {
productionEmbed: {
initialStateOpen: false, // should leopard automatically open on first load
killSessionWhenClosed: false, // should the conversational session be closed when x is clicked
showCloseButton: true // allows you to hide the close button
showCloseButton: true, // allows you to hide the close button
embedSupportedDomains: [],
leopardSupportedDomains: []
},
/**
* Social Authentication is provided through https://firebase.google.com/
Expand All @@ -78,7 +80,7 @@ const config = {
databaseUrl: "", // Firebase Realtime Database
messagingSenderId: "",
microsoft: {
domainHint: "", // mydomain.com
domainHint: "", // my-domain.com
tenant: "" // Azure AD Tenant ID
},
projectId: "", // firebase project id
Expand All @@ -89,13 +91,13 @@ const config = {
solution: {
location: {
placeInStaticFolder: false, // false = loaded client side via JavaScript ; true = .env.solution.json is placed in /static/config.json
sourceFile: ".env.solution.json" // relavtive path to your solution(s) config file - probably don't need to change
sourceFile: ".env.solution.json" // relative path to your solution(s) config file - probably don't need to change
}
},
ui: {
configArea: {
shareLink: {
kuttItApiKey: "" // Optional - URL Shorener https://kutt.it/ can shortner shared links generated in the config area
kuttItApiKey: "" // Optional - URL Shortener https://kutt.it/ can shortener shared links generated in the config area
}
},
hideConfigMenu: false, // true = Set in production | false when in demo/development mode
Expand Down

0 comments on commit 9400865

Please sign in to comment.