ACM-Thapar / ACM-Thapar/opensource-bootcamp-1

Fix CORS Configuration

オープン 初心者向け
#1 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

The cors package is imported in index.js, but it is never used as middleware. This will cause requests from the frontend to fail. Expected Behavior: The application should use app.use(cors()) to allow cross-origin requests.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start in `index.js`, where `cors` is imported. Locate the app initialization and middleware registration point, and add `app.use(cors())` so CORS is actually enabled before route handling. Run the app (using its normal start command) and verify a cross-origin request path in the API now returns CORS headers instead of failing. Mark done when frontend-origin requests succeed as expected from this issue’s description.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
express, javascript, node.js
領域
api, backend
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
85/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。