Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CORS エラー対策で下記作業を実施
更新手順
rustc を v1.77 にアップデート
依存関係を最新にするために削除
cargo をアップデート
cargo をビルド
更新後の差分
Note
Actix
actix-web
は、Rustの高性能な非同期Webフレームワークであり、Actixプロジェクトの一部です。このフレームワークは、高いパフォーマンスと柔軟性を提供し、HTTPサーバーとしての役割を果たします。
簡単に言うと、
actix-web
はRustでWebアプリケーションを構築するためのフレームワークであり、HTTPサーバーとして動作します。このフレームワークを使用することで、HTTPリクエストを受け取り、処理し、レスポンスを返すWebアプリケーションを作成することができます。
actix-web
は非同期I/Oをサポートしており、非同期処理によって複数のリクエストを同時に処理することができます。また、ルーティング、ミドルウェア、リクエスト/レスポンスのハンドリングなど、多くの機能を提供しています。actix_cors
actix-cors
は、RustのWebフレームワークであるActix WebでCORS(Cross - Origin Resource Sharing)を処理するためのミドルウェアです。CORSは、異なるオリジン(ドメインやポート番号が異なるサイト)間でのリソース共有を制御するための仕組みであり、ブラウザのセキュリティポリシーに従ってリクエストを制限するために使用されます。
actix-cors
を使用すると、Actix WebアプリケーションでCORSポリシーを適切に設定し、クライアントからのリクエストが制限されないようにすることができます。具体的には、異なるオリジンからのリクエストに対するアクセス制御や、リクエストに含まれるヘッダー情報の処理などを簡単に行うことができます。要約すると、
actix-cors
はActix WebアプリケーションでCORSポリシーを処理するためのミドルウェアであり、クライアントとサーバー間の通信を安全に制御するのに役立ちます。まとめ