Skip to content

Commit

Permalink
fix(cursus): Access-Control-Allow-Origin 설정 (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyj001012 authored Oct 25, 2023
1 parent cf970dd commit d7bca34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/v1/cursus/cursus.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export const getUserProjectFrom42API = async (
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${accessToken}`,
AccessControlAllowOrigin: 'https://42library.kr',
AccessControllAllowCredentials: 'true',
},
})
.then((response) => {
Expand Down Expand Up @@ -323,6 +325,8 @@ export const getProjectsInfo = async (accessToken: string, pageNumber: string) =
.get(`${uri}?${queryString}${pageQuery}`, {
headers: {
Authorization: `Bearer ${accessToken}`,
AccessControlAllowOrigin: 'https://42library.kr',
AccessControllAllowCredentials: 'true',
},
})
.catch((error) => {
Expand Down

0 comments on commit d7bca34

Please sign in to comment.