Skip to content

Commit

Permalink
Fix dict url
Browse files Browse the repository at this point in the history
  • Loading branch information
rensatsu committed Mar 29, 2024
1 parent d3a5001 commit 167b42b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/_headers
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
Referrer-Policy: strict-origin-when-cross-origin
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000
Content-Security-Policy: default-src 'none'; base-uri 'self'; script-src 'self'; style-src 'self'; font-src 'self'; form-action 'self'; connect-src 'self'; img-src 'self' data:;
Content-Security-Policy: default-src 'none'; base-uri 'self'; script-src 'self'; style-src 'self'; font-src 'self'; form-action 'self'; connect-src 'self' https://ren-prase-dict-3b0.pages.dev; img-src 'self' data:;
2 changes: 1 addition & 1 deletion src/libs/phrase-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function fetchDictionary(name: string): Promise<string[]> {
throw new Error("Unable to get dictionary information");
}

const url = new URL(`/dict/${dictData.path}`, location.href);
const url = new URL(`https://ren-prase-dict-3b0.pages.dev/dict/${dictData.path}`, location.href);

const resp = await fetch(url.toString());
if (!resp.ok) {
Expand Down

0 comments on commit 167b42b

Please sign in to comment.