fix: cors when content-type is set for simple requests

This commit is contained in:
liyasthomas
2021-08-22 22:44:07 +05:30
parent 5f27b59dc0
commit 294b1a5a7c
5 changed files with 43 additions and 20 deletions

View File

@@ -31,7 +31,7 @@
@click.native="clearContent('rawParams', $event)"
/>
<ButtonSecondary
v-if="contentType.endsWith('json')"
v-if="contentType && contentType.endsWith('json')"
ref="prettifyRequest"
v-tippy="{ theme: 'tooltip' }"
:title="$t('action.prettify')"