Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #64 from watson-developer-cloud/update-dep-iframe
Browse files Browse the repository at this point in the history
fix: Update dependencies and allow iframes
  • Loading branch information
germanattanasio authored Feb 15, 2019
2 parents e1ae5ad + 40d03dc commit 3956cf4
Show file tree
Hide file tree
Showing 5 changed files with 2,003 additions and 1,279 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ You can view a [demo](https://natural-language-classifier-demo.ng.bluemix.net/)

## Prerequisites

1. Sign up for an [IBM Cloud account](https://console.bluemix.net/registration/).
1. Download the [IBM Cloud CLI](https://console.bluemix.net/docs/cli/index.html#overview).
1. Sign up for an [IBM Cloud account](https://cloud.ibm.com/registration/).
1. Download the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli/index.html#overview).
1. Create an instance of the Natural Language Classifier service and get your credentials:
- Go to the [Natural Language Classifier](https://console.bluemix.net/catalog/services/natural-language-classifier) page in the IBM Cloud Catalog.
- Go to the [Natural Language Classifier](https://cloud.ibm.com/catalog/services/natural-language-classifier) page in the IBM Cloud Catalog.
- Log in to your IBM Cloud account.
- Click **Create**.
- Click **Show** to view the service credentials.
Expand Down Expand Up @@ -93,7 +93,7 @@ You can view a [demo](https://natural-language-classifier-demo.ng.bluemix.net/)
## Deploying to IBM Cloud as a Cloud Foundry Application
1. Login to IBM Cloud with the [IBM Cloud CLI](https://console.bluemix.net/docs/cli/index.html#overview)
1. Login to IBM Cloud with the [IBM Cloud CLI](https://cloud.ibm.com/docs/cli/index.html#overview)
```
ibmcloud login
Expand Down
5 changes: 4 additions & 1 deletion config/security.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ const helmet = require('helmet');

module.exports = (app) => {
app.use(secure());
app.use(helmet());
app.use(helmet({
cacheControl: false,
frameguard: false,
}));

app.use('/api/', rateLimit({
windowMs: 60 * 1000, // seconds
Expand Down
Loading

0 comments on commit 3956cf4

Please sign in to comment.