Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungGwan123 committed Nov 25, 2024
1 parent d9abbbd commit b03be30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ http {
proxy_set_header Origin $http_origin;

# CORS 설정 추가
add_header 'Access-Control-Allow-Origin' 'https://www.corinee.site' always;
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization' always;
add_header 'Access-Control-Allow-Headers' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always;
}
}
Expand Down
3 changes: 1 addition & 2 deletions packages/server/src/auth/strategies/google.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {
super({
clientID: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
callbackURL: `/api/auth/google/callback`,
callbackURL: `${process.env.CALLBACK_URL}/api/auth/google/callback`,
scope: ['email', 'profile'],
});
}
Expand All @@ -17,7 +17,6 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {
const origin = req.headers.origin

console.log("origin : " + origin)
options.callbackURL = `${origin}/api/auth/google/callback`;
options.state = origin;
super.authenticate(req, options);
}
Expand Down

0 comments on commit b03be30

Please sign in to comment.