

230905 서영석 횡단보도 이미지 css 수정 & X-Frame-Options 추가
@f4b041f884d9c2383cee42e9b760d616ed1afdb7
--- client/views/index.html
+++ client/views/index.html
... | ... | @@ -4,6 +4,7 @@ |
4 | 4 |
<head> |
5 | 5 |
<meta charset="UTF-8"> |
6 | 6 |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 |
+ <meta http-equiv="X-Frame-Options" content="deny"> |
|
7 | 8 |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
8 | 9 |
<meta name="description" content="Node Vue Web"> |
9 | 10 |
<link rel="icon" href="" /> |
--- client/views/pages/CrosswalkManagement/CrosswalkSearch.vue
+++ client/views/pages/CrosswalkManagement/CrosswalkSearch.vue
... | ... | @@ -1551,7 +1551,10 @@ |
1551 | 1551 |
gap: 1rem; |
1552 | 1552 |
} |
1553 | 1553 |
.img { |
1554 |
- height: 9rem; |
|
1554 |
+ height: 15rem; |
|
1555 |
+ border: 1px solid rgba(92, 92, 92, 0.516); |
|
1556 |
+ line-height: 4rem; |
|
1557 |
+ width: 200px; |
|
1555 | 1558 |
} |
1556 | 1559 |
label { |
1557 | 1560 |
|
--- server/modules/web/Server.js
+++ server/modules/web/Server.js
... | ... | @@ -18,6 +18,18 @@ |
18 | 18 |
//Streaming 중인 자원에 새로운 데이터를 stream 공간에 추가하기 위한 라이브러리 |
19 | 19 |
const newLineStream = require('new-line'); |
20 | 20 |
|
21 |
+webServer.use((req, res, next) => { |
|
22 |
+ res.header('X-Frame-Options', 'DENY'); // or 'SAMEORIGIN' or 'ALLOW-FROM uri' |
|
23 |
+ next(); |
|
24 |
+}); |
|
25 |
+ |
|
26 |
+// Your Vue.js application routes and other middleware |
|
27 |
+// ... |
|
28 |
+ |
|
29 |
+// const port = process.env.PORT || 3000; |
|
30 |
+// webServer.listen(port, () => { |
|
31 |
+// console.log(`Server is running on port ${port}`); |
|
32 |
+// }); |
|
21 | 33 |
/** |
22 | 34 |
* @author : 최정우 |
23 | 35 |
* @since : 2022.09.20 |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?