Skip to content

Commit

Permalink
fixing url and CORS error
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasheartcliff committed Nov 9, 2024
1 parent 779d311 commit 54d55dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/pages/[locale]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const Index = () => {
setLocale(
l,
() => {
// eslint-disable-next-line no-console
console.info(`Change locale to '${l}'`);
setLanguage(l);
},
Expand Down
2 changes: 1 addition & 1 deletion src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const jsonHeaders: RequestInit = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Headers':
'Origin, X-Requested-With, Content-Type, Accept',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export const WAKATIME_EDITORS = `https://wakatime.com/share/@lucasheartcliff/5fc
export const GITHUB_PROFILE = (username: string) =>
`https://api.github.com/users/${username}`;
export const GITHUB_PINNED_REPO = (username: string) =>
`https://pinned.berrysauce.me/get/${username}`;
`https://pinned.berrysauce.dev/get/${username}`;
export const GITHUB_REPO = (username: string, repo: string) =>
`https://github.com/${username}/${repo}`;

0 comments on commit 54d55dc

Please sign in to comment.