Skip to content

Commit

Permalink
Merge pull request #140 from jason5ng32/dev
Browse files Browse the repository at this point in the history
Improvement
  • Loading branch information
jason5ng32 authored Mar 9, 2024
2 parents f150a50 + 03a0ab7 commit 5655b6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/recaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default async (req, res) => {
}

const secret = process.env.RECAPTCHA_SECRET_KEY;
const verifyUrl = `https://www.recaptcha.net/recaptcha/api/siteverify?secret=${secret}&response=${token}`;
const verifyUrl = `https://www.google.com/recaptcha/api/siteverify?secret=${secret}&response=${token}`;

try {
const recaptchaResponse = await fetch(verifyUrl, {
Expand Down
2 changes: 1 addition & 1 deletion src/components/queryip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export default {
}
// 创建一个 script 元素
const script = document.createElement('script');
script.src = `https://www.recaptcha.net/recaptcha/api.js?render=${import.meta.env.VITE_RECAPTCHA_SITE_KEY}`;
script.src = `https://www.google.com/recaptcha/api.js?render=${import.meta.env.VITE_RECAPTCHA_SITE_KEY}`;
script.async = true;
script.defer = true;
document.head.appendChild(script);
Expand Down

0 comments on commit 5655b6d

Please sign in to comment.