Skip to content

Commit

Permalink
Merge pull request #333 from dfpc-coe/headers
Browse files Browse the repository at this point in the history
Sec Headers
  • Loading branch information
ingalls authored Sep 10, 2024
2 parents 2e297a6 + 40c5b4c commit 893c991
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 deletions.
5 changes: 5 additions & 0 deletions api/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ http {

client_max_body_size 512M;

server_tokens off;

add_header X-Content-Type-Options nosniff;
add_header Referrer-Policy strict-origin-when-cross-origin;

location / {
if ($request_uri ~ ^/(.*)\.html) {
return 302 /$1;
Expand Down
2 changes: 1 addition & 1 deletion api/web/src/components/CloudTAK/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<img
src='/logo.png'
alt='Agency Logo'
height='150'
style='height: 150px;'
>
</div>
<TablerLoading desc='Loading Map State' />
Expand Down
5 changes: 4 additions & 1 deletion api/web/src/components/CloudTAK/util/Icons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ export default {
}
},
mounted: async function() {
await this.fetchList();
// If the icon has a `:` it is part of an iconset, otherwise it is derived from the type
if (this.iconset.includes(':')) {
await this.fetchList();
}
},
methods: {
iconurl: function(icon) {
Expand Down
2 changes: 1 addition & 1 deletion api/web/src/components/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<img
alt='Agency Logo'
src='/logo.png'
height='150'
style='height: 150px;'
>
</div>
<TablerLoading desc='Loading CloudTAK' />
Expand Down
2 changes: 1 addition & 1 deletion api/web/src/components/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
>
<img
src='/logo.png'
height='150'
style='height: 150px;'
alt='CloudTAK System Logo'
>
</div>
Expand Down
10 changes: 7 additions & 3 deletions api/web/src/components/util/IconSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,16 @@ export default {
await this.Iconlists();
},
},
modelValue: function() {
if (this.modelValue) this.fetch();
modelValue: async function() {
if (this.modelValue && this.modelValue.includes(":")) {
await this.fetch();
}
}
},
mounted: async function() {
if (this.modelValue) await this.fetch();
if (this.modelValue && this.modelValue.includes(":")) {
await this.fetch();
}
await this.Iconlistsets();
await this.Iconlists();
},
Expand Down
2 changes: 1 addition & 1 deletion api/web/src/components/util/LoginModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
>
<img
src='/logo.png'
height='150'
style='height: 150px;'
>
</div>
<h2 class='h2 text-center mb-2'>
Expand Down

0 comments on commit 893c991

Please sign in to comment.