Skip to content

Commit 5aca55f

Browse files
committed
fix(e2e:prod): turn off lusca if using saucelabs
1 parent 8827e93 commit 5aca55f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: templates/app/server/config/express.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function(app) {
5656
* Lusca - express server security
5757
* https://github.com/krakenjs/lusca
5858
*/
59-
if ('test' !== env) {
59+
if (env !== 'test' && !process.env.SAUCE_USERNAME) {
6060
app.use(lusca({
6161
csrf: {
6262
angular: true

0 commit comments

Comments
 (0)