服务器配置
This commit is contained in:
1 parent
a1b4a63552
commit
fa7c8244b0
33 files changed
+1882
-363
No files matched your search
@@ -1,5 +1,7 @@
|
||||
import {
|
||||
shouldBlockImageHostRequest,
|
||||
shouldBlockVideoHostRequest,
|
||||
shouldBlockFileHostRequest,
|
||||
shouldBlockSiteHostImageRequest,
|
||||
shouldBlockUnknownHostRequest
|
||||
} from '../utils/host-isolation'
|
||||
@@ -10,6 +12,8 @@ export default defineEventHandler((event) => {
|
||||
if (
|
||||
shouldBlockUnknownHostRequest(event)
|
||||
|| shouldBlockImageHostRequest(event)
|
||||
|| shouldBlockVideoHostRequest(event)
|
||||
|| shouldBlockFileHostRequest(event)
|
||||
|| shouldBlockSiteHostImageRequest(event)
|
||||
) {
|
||||
setHeader(event, 'Cache-Control', HOST_ISOLATION_CACHE_CONTROL)
|
||||
|
||||
Reference in new issue
Block a user