From 52744eed7b8cc8b758825d2ba188933f907e07df Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Wed, 12 Mar 2014 09:38:42 +0100 Subject: [PATCH] THRIFT-2397 Add CORS and CSP support for JavaScript and Node.js libraries Patch: Randy Abernethy --- lib/js/README | 20 ++--- lib/js/src/thrift.js | 22 ++--- lib/js/test/README | 23 +++-- lib/nodejs/lib/thrift/web_server.js | 130 ++++++++++++++++++++++------ 4 files changed, 135 insertions(+), 60 deletions(-) diff --git a/lib/js/README b/lib/js/README index 07b188ba..bb650503 100644 --- a/lib/js/README +++ b/lib/js/README @@ -25,7 +25,7 @@ under the License. Grunt Build ------------ -The is the base directory for the Apache Thrift JavaScript +This is the base directory for the Apache Thrift JavaScript library. This directory contains a Gruntfile.js and a package.json. Many of the build and test tools used here require a recent version of Node.js to be installed. To @@ -46,7 +46,7 @@ Tree The following directories are present (some only after the grunt build): /src - The JavaScript Apache Thrift source - /doc - HTML documentation + /doc - HTML documentation /dist - Distribution files (thrift.js and thrift.min.js) /test - Various tests, this is a good place to look for example code @@ -81,8 +81,8 @@ service.