10000 CORSの設定を修正 by keito0tada · Pull Request #42 · comb19/chat_back · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CORSの設定を修正 #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 21, 2025
Merged

CORSの設定を修正 #42

merged 5 commits into from
May 21, 2025

Conversation

keito0tada
Copy link
Contributor
@keito0tada keito0tada commented May 20, 2025

概要

CORSの設定などの細かい部分を修正

これでlocalの開発環境も動きそう?

変更点

  • corsの設定を修正
  • invitationのtypoを修正
  • invitationのレスポンスを修正

Issue

@keito0tada keito0tada self-assigned this May 20, 2025
@keito0tada keito0tada requested a review from kasatomorning May 20, 2025 19:55
@kasatomorning kasatomorning requested a review from Copilot May 21, 2025 07:39
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes CORS header settings and adjusts invitation-related endpoints and repository method names. Key changes include updating GetByID methods to Find for consistency, modifying the guild invitation verification signature and logging, and updating the route handlers accordingly.

Reviewed Changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
api/usecase/*.go Updated method calls from GetByID to Find and adjusted invitation handling
api/service/authorization.go Added an authorization service for channel access checks
api/interface/handler/guild_invitation.go Renamed invitation handler methods and updated response handling
api/infrastructure/persistence/*.go Renamed persistence methods and corrected repository interface names
api/domain/repository/*.go Updated repository interface method names
api/cmd/app/app.go Modified CORS header values and updated invitation endpoint routes
api/test/guild_invitation_test.go Updated test URL for invitation verification
Comments suppressed due to low confidence (1)

api/service/authorization.go:24

  • In CheckAuthorizationAccessToChannel, if a userChannel is found the user should likely be considered authorized (i.e. return true). Please review whether the logic should be inverted to correctly reflect access control.
if userChannel != nil { return false, nil }

@keito0tada keito0tada merged commit f3407bb into develop May 21, 2025
keito0tada added a commit that referenced this pull request May 22, 2025
* ギルドへの招待を追加 (#36)

* modify pr template

* ギルドへの招待を追加

* feat(delete_channel)

* feat: スキーマ変更 (#39)

* feat:スキーマ変更

* chore:スキーマファイルのsyntax errorを修正

* CORSの設定を修正 (#42)

* corsの設定を修正

* invitationのtypoを修正

* invitationのレスポンスを修正

* persistenceの関数名の修正

* AuthorizationServiceを追加

* 余計なスラッシュを削除 (#46)

---------

Co-authored-by: kasatomorning <9549356+kasatomorning@users.noreply.github.com>
keito0tada added a commit that referenced this pull request May 22, 2025
* ギルドへの招待を追加 (#36)

* modify pr template

* ギルドへの招待を追加

* feat(delete_channel)

* feat: スキーマ変更 (#39)

* feat:スキーマ変更

* chore:スキーマファイルのsyntax errorを修正

* CORSの設定を修正 (#42)

* corsの設定を修正

* invitationのtypoを修正

* invitationのレスポンスを修正

* persistenceの関数名の修正

* AuthorizationServiceを追加

* 余計なスラッシュを削除 (#46)

* ギルドに参加してもチャンネルに参加できなかった問題を修正 (#48)

* チャンネルの権限を確認するサービスを導入

* ログのリファクタ

* メッセージの送受信の認可をserviceに変更

---------

Co-authored-by: kasatomorning <9549356+kasatomorning@users.noreply.github.com>
keito0tada added a commit that referenced this pull request May 24, 2025
* ギルドへの招待を追加 (#36)

* modify pr template

* ギルドへの招待を追加

* feat(delete_channel)

* feat: スキーマ変更 (#39)

* feat:スキーマ変更

* chore:スキーマファイルのsyntax errorを修正

* CORSの設定を修正 (#42)

* corsの設定を修正

* invitationのtypoを修正

* invitationのレスポンスを修正

* persistenceの関数名の修正

* AuthorizationServiceを追加

* 余計なスラッシュを削除 (#46)

* ギルドに参加してもチャンネルに参加できなかった問題を修正 (#48)

* チャンネルの権限を確認するサービスを導入

* ログのリファクタ

* メッセージの送受信の認可をserviceに変更

* テスト用dbを追加 (#50)

* .env.*を無視

* テスト環境を追加

* postgresのversionを固定

* ローカル環境の修正

---------

Co-authored-by: kasatomorning <9549356+kasatomorning@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0