Skip to content

Commit eeebf32

Browse files
committed
feat(client): improve HTTP headers
1 parent b755a32 commit eeebf32

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

apps/client/quasar.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ module.exports = configure(function (ctx) {
6262
{ path: 'sodium.universal' },
6363
{ path: 'i18n.universal' },
6464
{ path: 'vue.universal' },
65-
{ path: 'disable-cache.universal' },
65+
66+
{ path: 'http-headers/disable-cache.universal' },
67+
{ path: 'http-headers/x-frame-options.universal' },
68+
{ path: 'http-headers/referrer-policy.universal' },
6669

6770
{ path: 'array-at-polyfill.client', server: false },
6871
{ path: 'logger.client', server: false },

apps/client/src/boot/disable-cache.universal.ts renamed to apps/client/src/boot/http-headers/disable-cache.universal.ts

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { boot } from 'quasar/wrappers';
2+
3+
export default boot(async ({ ssrContext }) => {
4+
ssrContext?.res.setHeader('Referrer-Policy', 'no-referrer');
5+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { boot } from 'quasar/wrappers';
2+
3+
export default boot(async ({ ssrContext }) => {
4+
ssrContext?.res.setHeader('X-Frame-Options', 'DENY');
5+
});

0 commit comments

Comments
 (0)