diff --git a/README.md b/README.md index c478ae6..35bd4d4 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # Health Bot Container +A simple web page that allows users to communicate with the [Microsoft Health Bot service](https://www.microsoft.com/en-us/research/project/health-bot/) through a WebChat. + **Note:** In order to use this Web Chat with the Health Bot service, you will need to obtain your Web Chat secret by going to ["Integration/Secrets"](./secrets.png) on the navigation panel. -Please refer to [Microsoft Health Bot](https://www.microsoft.com/en-us/research/project/health-bot/) for a private preview and details. -A simple web page to hand off users to the Microsoft Health bot 1.Deploy the website: diff --git a/Web.config b/Web.config index 4eb0322..45c8280 100644 --- a/Web.config +++ b/Web.config @@ -24,11 +24,6 @@ - - - - - diff --git a/public/index.html b/public/index.html index 103212f..0e46867 100644 --- a/public/index.html +++ b/public/index.html @@ -17,7 +17,7 @@ );window[aiName]=aisdk,aisdk.queue&&0===aisdk.queue.length&&aisdk.trackPageView({}); --> - + diff --git a/public/index.js b/public/index.js index a7f5cd9..6d8462e 100644 --- a/public/index.js +++ b/public/index.js @@ -53,7 +53,6 @@ function chatRequested(info) { function getUserLocation(info, callback) { navigator.geolocation.getCurrentPosition( - null, function(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; diff --git a/server.js b/server.js index 0365f80..b975a7e 100644 --- a/server.js +++ b/server.js @@ -13,9 +13,13 @@ const directLineTokenEp = `https://${DIRECTLINE_ENDPOINT_URI || "directline.botf // Initialize the web app instance, const app = express(); app.use(cookieParser()); + +let options = {}; +// uncomment the line below if you wish to allow only specific domains to embed this page as a frame +//options = {setHeaders: (res, path, stat) => {res.set('Content-Security-Policy', 'frame-ancestors example.com')}}; // Indicate which directory static resources // (e.g. stylesheets) should be served from. -app.use(express.static(path.join(__dirname, "public"))); +app.use(express.static(path.join(__dirname, "public"), options)); // begin listening for requests. const port = process.env.PORT || 8080; const region = process.env.REGION || "Unknown";