aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
authorcjd242018-04-19 21:01:12 +0100
committercjd242018-04-19 21:01:12 +0100
commit1416af119d500ea6e7983262a7ebab3ab35c0500 (patch)
treeba7f6d4b86cc0eb1ec35c407ed59af4af90e996c /src/app.ts
parentMerge branch 'cjd24/conversion' of https://gitlab.cs.st-andrews.ac.uk/cs3099g... (diff)
parentfixed test-crash (diff)
downloadmedicine-1416af119d500ea6e7983262a7ebab3ab35c0500.tar.gz
medicine-1416af119d500ea6e7983262a7ebab3ab35c0500.zip

adding trh/gets into mine to get the additional CORS stuff

Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app.ts b/src/app.ts
index 09b9e6a..d94011a 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -81,6 +81,7 @@ class App {
'Access-Control-Allow-Headers',
'Origin, X-Requested-With, Content-Type, Accept'
);
+ res.header('Access-Control-Allow-Methods', '*');
next();
});
}