Add missing accessControlAllowOrigin list to middleware view

Headers middleware doesn't support `accessControlAllowOrigin` option
anymore, it should print a list of values from
`accessControlAllowOriginList`.
This commit is contained in:
Bartek Bułat 2020-07-02 10:56:03 +02:00 committed by GitHub
parent b61de07ca0
commit 607cda779d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,15 +371,16 @@
</div> </div>
</div> </div>
</q-card-section> </q-card-section>
<!-- EXTRA FIELDS FROM MIDDLEWARES - [headers] - accessControlAllowOrigin --> <!-- EXTRA FIELDS FROM MIDDLEWARES - [headers] - accessControlAllowOriginList -->
<q-card-section v-if="middleware.headers"> <q-card-section v-if="middleware.headers">
<div class="row items-start no-wrap"> <div class="row items-start no-wrap">
<div class="col"> <div class="col">
<div class="text-subtitle2">Access Control Allow Origin</div> <div class="text-subtitle2">Access Control Allow Origin</div>
<q-chip <q-chip
v-for="(val, key) in exData(middleware).accessControlAllowOriginList" :key="key"
dense dense
class="app-chip app-chip-green"> class="app-chip app-chip-green">
{{ exData(middleware).accessControlAllowOrigin }} {{ val }}
</q-chip> </q-chip>
</div> </div>
</div> </div>