ソースを参照

id request : encode altcha payload

olinox14 1 年間 前
コミット
65591d0716
1 ファイル変更1 行追加1 行削除
  1. 1 1
      components/IdCard.vue

+ 1 - 1
components/IdCard.vue

@@ -77,7 +77,7 @@ watch(() => appStore.altchaPayload, () => {
 }, { immediate: false })
 
 const submit = async () => {
-  const url = 'https://api.ogene.fr/api/id-card?payload=' + (appStore.altchaPayload ?? '');
+  const url = 'https://api.ogene.fr/api/id-card?payload=' + encodeURI(appStore.altchaPayload ?? '');
 
   try {
     const response = await fetch(url, {