소스 검색

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, {