mirror of
https://github.com/sasjs/server.git
synced 2026-01-03 21:10:05 +00:00
fix(upload): appStream uses CSRF + Session authentication
This commit is contained in:
@@ -41,7 +41,16 @@ export const csrfProtection = csrf({ cookie: cookieOptions })
|
||||
/***********************************
|
||||
* Handle security and origin *
|
||||
***********************************/
|
||||
app.use(helmet())
|
||||
app.use(
|
||||
helmet({
|
||||
contentSecurityPolicy: {
|
||||
directives: {
|
||||
...helmet.contentSecurityPolicy.getDefaultDirectives(),
|
||||
'script-src': ["'self'", "'unsafe-inline'"]
|
||||
}
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
/***********************************
|
||||
* Enabling CORS *
|
||||
|
||||
Reference in New Issue
Block a user