{"id":38444,"date":"2024-11-01T18:17:01","date_gmt":"2024-11-01T18:17:01","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38444"},"modified":"2024-11-26T06:44:19","modified_gmt":"2024-11-26T06:44:19","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-fastapi%ec%97%90%ec%84%9c-cors-%ec%84%a4%ec%a0%95%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38444\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<article>\n<header>\n<p>\ub0a0\uc9dc: <time datetime=\"2023-10-01\">2023\ub144 10\uc6d4 1\uc77c<\/time><\/p>\n<p>\uc791\uc131\uc790: <strong>AI \uae30\uc220\uc9c0\uc6d0\ud300<\/strong><\/p>\n<\/header>\n<section>\n<h2>\uc11c\ub860<\/h2>\n<p>FastAPI\ub294 Python\uc73c\ub85c \uc6f9 API\ub97c \ub9cc\ub4e4\uae30 \uc704\ud55c \ud604\ub300\uc801\uc774\uace0 \ub6f0\uc5b4\ub09c \uc131\ub2a5\uc744 \uac00\uc9c4 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python\uc758 \ube44\ub3d9\uae30 \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 \uc11c\ubc84\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub610\ud55c FastAPI\ub294 Swagger UI\uc640 ReDoc\uc744 \ud1b5\ud55c \uc790\ub3d9 \ubb38\uc11c\ud654 \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\uc5ec API \uac1c\ubc1c\uc744 \uc6a9\uc774\ud558\uac8c \ud569\ub2c8\ub2e4. \uc774\ub7f0 \ud61c\ud0dd \ub355\ubd84\uc5d0 FastAPI\ub294 \ud604\uc7ac \ub9ce\uc740 \uac1c\ubc1c\uc790\ub4e4 \uc0ac\uc774\uc5d0\uc11c \uc778\uae30\ub97c \ub04c\uace0 \uc788\ub294 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uac00 \ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\uc5d0\uc11c CORS(Cross-Origin Resource Sharing) \uc124\uc815\uc758 \uc911\uc694\uc131\uacfc \uad6c\uccb4\uc801\uc778 \ubc29\ubc95\uc5d0 \ub300\ud574 \ud0d0\uad6c\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>CORS\ub780 \ubb34\uc5c7\uc778\uac00?<\/h2>\n<p>CORS\ub294 Cross-Origin Resource Sharing\uc758 \uc57d\uc5b4\ub85c, \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \uc11c\ub85c \ub2e4\ub978 \ucd9c\ucc98\uc758 \ub9ac\uc18c\uc2a4\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\uac8c \ud5c8\uc6a9\ud558\ub294 \uba54\ucee4\ub2c8\uc998\uc785\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 <code>http:\/\/example.com<\/code>\uc5d0\uc11c \ud638\uc2a4\ud305\ub418\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774\ub77c\uace0 \ud560 \ub54c, <code>http:\/\/api.example.com<\/code>\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 API\uc5d0 \uc811\uadfc\ud560 \ud544\uc694\uac00 \uc788\ub2e4\uba74 CORS\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<p>\ube0c\ub77c\uc6b0\uc800\ub294 \ubcf4\uc548\uc0c1\uc758 \uc774\uc720\ub85c \ud55c \ucd9c\ucc98\uc5d0\uc11c \ub85c\ub4dc\ub41c \uc6f9 \ud398\uc774\uc9c0\uac00 \ub2e4\ub978 \ucd9c\ucc98\uc758 \ub9ac\uc18c\uc2a4\uc5d0 \uc811\uadfc\ud558\ub294 \uac83\uc744 \uae30\ubcf8\uc801\uc73c\ub85c \uc81c\ud55c\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uc81c\ud55c\uc744 \uc6b0\ud68c\ud558\uae30 \uc704\ud574 CORS \uc124\uc815\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30<\/h2>\n<p>FastAPI\uc5d0\uc11c\ub294 <code>fastapi.middleware.cors<\/code> \ubaa8\ub4c8\uc744 \ud1b5\ud574 CORS \uc124\uc815\uc744 \uac04\ud3b8\ud558\uac8c \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. CORS \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud2b9\uc815 \ub3c4\uba54\uc778\uc5d0\uc11c \uc624\ub294 \uc694\uccad\uc744 \ud5c8\uc6a9\ud558\uac70\ub098 \ucc28\ub2e8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>FastAPI\uc5d0\uc11c CORS\ub97c \uc124\uc815\ud558\uae30 \uc704\ud574\uc11c\ub294 \ub2e4\uc74c \ub450 \uac00\uc9c0 \ub2e8\uacc4\ub97c \uc218\ud589\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<ol>\n<li><strong>CORS \ubbf8\ub4e4\uc6e8\uc5b4 \uc124\uce58:<\/strong> CORS \ubbf8\ub4e4\uc6e8\uc5b4\uac00 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. FastAPI\ub294 CORS \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uae30\ubcf8\uc801\uc73c\ub85c \uc81c\uacf5\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>CORS \ubbf8\ub4e4\uc6e8\uc5b4 \uc801\uc6a9:<\/strong> FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc778\uc2a4\ud134\uc2a4\uc5d0 CORS \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<\/section>\n<section>\n<h3>1. CORS \ubbf8\ub4e4\uc6e8\uc5b4 \uc124\uce58<\/h3>\n<p>FastAPI\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uba3c\uc800 FastAPI\uc640 \uad00\ub828 \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4. \uc544\ub798\uc758 \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 FastAPI\uc640 Uvicorn(ASGI \uc11c\ubc84)\ub97c \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>pip install fastapi uvicorn<\/code><\/pre>\n<\/section>\n<section>\n<h3>2. CORS \ubbf8\ub4e4\uc6e8\uc5b4 \uc801\uc6a9 \uc608\uc81c<\/h3>\n<p>\uc774\uc81c FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc0dd\uc131\ud558\uace0 CORS \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uc801\uc6a9\ud558\ub294 \uc608\uc81c\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>from fastapi import FastAPI\nfrom fastapi.middleware.cors import CORSMiddleware\n\napp = FastAPI()\n\n# CORS \uc124\uc815\norigins = [\n    \"https:\/\/example.com\",  # \ud2b9\uc815 \ub3c4\uba54\uc778\n    \"http:\/\/localhost:8000\"  # \ub85c\uceec \uac1c\ubc1c\uc6a9\n]\n\napp.add_middleware(\n    CORSMiddleware,\n    allow_origins=origins,  # \ud5c8\uc6a9\ud560 \ub3c4\uba54\uc778 \ubaa9\ub85d\n    allow_credentials=True,\n    allow_methods=[\"GET\", \"POST\", \"PUT\", \"DELETE\"],  # \ud5c8\uc6a9\ud560 HTTP \uba54\uc11c\ub4dc\n    allow_headers=[\"*\"],  # \ud5c8\uc6a9\ud560 \ud5e4\ub354\n)\n\n@app.get(\"\/\")\nasync def root():\n    return {\"message\": \"Hello, World!\"}\n\nif __name__ == \"__main__\":\n    import uvicorn\n    uvicorn.run(app, host=\"0.0.0.0\", port=8000)\n<\/code><\/pre>\n<h4>\ucf54\ub4dc \uc124\uba85<\/h4>\n<p>\uc704 \ucf54\ub4dc\ub97c \ud65c\uc6a9\ud558\uc5ec FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc124\uc815\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li><code>from fastapi import FastAPI<\/code>: FastAPI \uc778\uc2a4\ud134\uc2a4\ub97c \uc0dd\uc131\ud558\uae30 \uc704\ud55c \ubaa8\ub4c8\uc744 \uac00\uc838\uc635\ub2c8\ub2e4.<\/li>\n<li><code>from fastapi.middleware.cors import CORSMiddleware<\/code>: CORS \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \uac00\uc838\uc635\ub2c8\ub2e4.<\/li>\n<li><code>origins<\/code>: \uc774 \ub9ac\uc2a4\ud2b8\uc5d0\ub294 \ud5c8\uc6a9\ud560 \ub3c4\uba54\uc778\uc744 \ucd94\uac00\ud569\ub2c8\ub2e4. \uac1c\ubc1c \uc911\uc5d0\ub294 \ub85c\uceec \ud638\uc2a4\ud2b8\uc640 \uac19\uc740 URL\ub3c4 \ud3ec\ud568\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><code>app.add_middleware<\/code>: FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 CORS \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc5d0 \uc815\uc758\ub41c \ub9e4\uac1c\ubcc0\uc218\ub4e4\uc740 CORS \ub3d9\uc791\uc744 \uc815\uc758\ud569\ub2c8\ub2e4.<\/li>\n<li><code>allow_credentials=True<\/code>: \uc774 \uc124\uc815\uc744 \uc0ac\uc6a9\ud558\uba74 \uace0\uac1d \uc778\uc99d\uc815\ubcf4\ub97c \ud3ec\ud568\ud55c \uc694\uccad\uc774 \ud5c8\uc6a9\ub429\ub2c8\ub2e4.<\/li>\n<li><code>allow_methods<\/code>: \uc774 \ub9ac\uc2a4\ud2b8\uc5d0\ub294 \ud5c8\uc6a9\ud560 HTTP \uba54\uc11c\ub4dc(GET, POST, PUT, DELETE \ub4f1)\ub97c \uc815\uc758\ud569\ub2c8\ub2e4.<\/li>\n<li><code>allow_headers=[\"*\"]<\/code>: \ubaa8\ub4e0 \uc694\uccad \ud5e4\ub354\ub97c \ud5c8\uc6a9\ud569\ub2c8\ub2e4. \ud544\uc694\uc5d0 \ub530\ub77c \uad6c\uccb4\uc801\uc73c\ub85c \uc815\uc758\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><code>@app.get(\"\/\")<\/code>: \ub8e8\ud2b8 \uacbd\ub85c\uc5d0 \ub300\ud55c GET \uc694\uccad\uc744 \ucc98\ub9ac\ud558\ub294 \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc785\ub2c8\ub2e4.<\/li>\n<li><code>uvicorn.run(app, host=\"0.0.0.0\", port=8000)<\/code>: Uvicorn\uc744 \ud1b5\ud574 \uc11c\ubc84\ub97c \uc2dc\uc791\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h3>3. CORS\uc758 \uc911\uc694\uc131<\/h3>\n<p>CORS\ub294 \uc5ec\ub7ec \uc0ac\uc6a9 \uc0ac\ub840\uc5d0\uc11c \uc911\uc694\ud558\uac8c \uc791\uc6a9\ud569\ub2c8\ub2e4. \ud2b9\ud788, \ud504\ub7f0\ud2b8\uc5d4\ub4dc \uac1c\ubc1c \ubc0f API \uc81c\uacf5 \uc2dc \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \uc11c\ub85c \ub2e4\ub978 \ucd9c\ucc98\uc5d0\uc11c \ub370\uc774\ud130\uc640 \ub9ac\uc18c\uc2a4\ub97c \uacf5\uc720\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 CORS\uac00 \ud544\uc694\ud55c \uba87 \uac00\uc9c0 \uc8fc\uc694 \uc774\uc720\uc785\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\ubcf4\uc548:<\/strong> CORS\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \uc7a0\uc7ac\uc801\uc73c\ub85c \uc545\uc758\uc801\uc778 \uc694\uccad\uc73c\ub85c\ubd80\ud130 \ubcf4\ud638\ubc1b\uc744 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4.<\/li>\n<li><strong>\uc0c1\ud638 \uc6b4\uc601\uc131:<\/strong> \uc11c\ub85c \ub2e4\ub978 \ub3c4\uba54\uc778 \uac04\uc5d0 API\ub97c \ud638\ucd9c\ud560 \uc218 \uc788\uc5b4 \uc11c\ube44\uc2a4 \uac04\uc758 \uc0c1\ud638 \uc791\uc6a9\uc744 \uac00\ub2a5\ud558\uac8c \ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc720\uc5f0\uc131:<\/strong> \ub2e4\uc591\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158(\uc6f9, \ubaa8\ubc14\uc77c \ub4f1)\uc5d0\uc11c API\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\ub3c4\ub85d \ud5c8\uc6a9\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h3>4. CORS \uad00\ub828 \uc624\ub958 \ucc98\ub9ac<\/h3>\n<p>CORS \uc124\uc815\uc774 \uc62c\ubc14\ub974\uc9c0 \uc54a\uac70\ub098 \ud5c8\uc6a9\ub418\uc9c0 \uc54a\ub294 \ucd9c\ucc98\uc5d0\uc11c \uc694\uccad\uc774 \ub4e4\uc5b4\uc624\ub294 \uacbd\uc6b0 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c\ub294 CORS \uad00\ub828 \uc624\ub958 \uba54\uc2dc\uc9c0\ub97c \ud45c\uc2dc\ud569\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc778 \uc624\ub958\uc640 \uadf8 \ud574\uacb0 \ubc29\ubc95\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>Access-Control-Allow-Origin \uc624\ub958:<\/strong> \uc774 \uc624\ub958\ub294 \uc11c\ubc84\uc5d0\uc11c \uc694\uccad\ud55c \ucd9c\ucc98\ub97c \ud5c8\uc6a9\ud558\uc9c0 \uc54a\uc744 \ub54c \ubc1c\uc0dd\ud569\ub2c8\ub2e4. CORS \ubbf8\ub4e4\uc6e8\uc5b4 \uc124\uc815\uc5d0\uc11c \ud5c8\uc6a9\ud560 \ucd9c\ucc98\ub97c \uc62c\ubc14\ub85c \uc124\uc815\ud588\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>Preflight \uc694\uccad \uc624\ub958:<\/strong> \ud2b9\uc815 HTTP \uba54\uc11c\ub4dc(\uc608: PUT, DELETE \ub4f1)\ub97c \uc0ac\uc6a9\ud560 \ub54c \ubc1c\uc0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uacbd\uc6b0\uc5d0\ub294 \uc11c\ubc84\uac00 OPTIONS \uba54\uc11c\ub4dc\uc5d0 \ub300\ud55c \uc694\uccad\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uc815\ud574\uc57c \ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h3>5. \ub2e4\uc591\ud55c CORS \uc124\uc815\ud558\uae30<\/h3>\n<p>CORS \uc124\uc815\uc740 \ube44\uc988\ub2c8\uc2a4 \uc694\uad6c \uc0ac\ud56d\uc5d0 \ub530\ub77c \ub2e4\uc591\ud558\uac8c \uad6c\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \ub2e4\uc74c\uacfc \uac19\uc740 \uc635\uc158\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\ubd80\ubd84\uc801 \ud5c8\uc6a9:<\/strong> \ud2b9\uc815 \ub3c4\uba54\uc778\ub9cc \ud5c8\uc6a9\ud558\ub824\uba74 <code>allow_origins<\/code>\uc5d0 \ud574\ub2f9 \ub3c4\uba54\uc778\ub9cc \ucd94\uac00\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ubaa8\ub4e0 \ub3c4\uba54\uc778 \ud5c8\uc6a9:<\/strong> \ubaa8\ub4e0 \ub3c4\uba54\uc778\uc5d0\uc11c \uc694\uccad\uc744 \ud5c8\uc6a9\ud558\ub824\uba74 <code>allow_origins=[\"*\"]<\/code>\ub85c \uc124\uc815\ud569\ub2c8\ub2e4. \ud558\uc9c0\ub9cc, \ubcf4\uc548\uc0c1\uc758 \uc774\uc720\ub85c \uad8c\uc7a5\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\ub3d9\uc801 \ud5c8\uc6a9:<\/strong> \uc694\uccad \ud5e4\ub354\ub97c \uae30\ubc18\uc73c\ub85c CORS \uc124\uc815\uc744 \ub3d9\uc801\uc73c\ub85c \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uacbd\uc6b0, \uc694\uccad\uc758 \ucd9c\ucc98\ub97c \ud655\uc778\ud558\uc5ec \ub3d9\uc801\uc73c\ub85c \ud5c8\uc6a9 \uc5ec\ubd80\ub97c \uacb0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h3>\uacb0\ub860<\/h3>\n<p>FastAPI\ub294 CORS \uc124\uc815\uc744 \uac04\ub2e8\ud558\uac8c \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \uac15\ub825\ud55c \ub3c4\uad6c\ub97c \uc81c\uacf5\ud558\uc5ec, \ud504\ub7f0\ud2b8\uc5d4\ub4dc\uc640 \ubc31\uc5d4\ub4dc \uac04\uc758 \uc6d0\ud65c\ud55c \ud1b5\uc2e0\uc744 \uac00\ub2a5\ud558\uac8c \ud569\ub2c8\ub2e4. \uc801\uc808\ud55c CORS \uc124\uc815\uc740 \ubcf4\uc548, \uc720\uc5f0\uc131 \ubc0f \uc11c\ube44\uc2a4 \uac04\uc758 \uc0c1\ud638 \uc791\uc6a9\uc744 \ubcf4\uc7a5\ud558\ub294 \ub370 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. \ub530\ub77c\uc11c FastAPI\ub85c \uc6f9 \uc11c\ube44\uc2a4\ub97c \uac1c\ubc1c\ud560 \ub54c CORS \uc124\uc815\uc744 \uc8fc\uc758 \uae4a\uac8c \ub2e4\ub8e8\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<p>\uc774 \uae00\uc744 \ud1b5\ud574 FastAPI\uc5d0\uc11c CORS \uc124\uc815\uc744 \uac04\ud3b8\ud558\uac8c \uc9c4\ud589\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \ubc30\uc6b0\uc168\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4. FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub354\uc6b1 \uc548\uc804\ud558\uace0 \ud6a8\uc728\uc801\uc778 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud574 \ubcf4\uc138\uc694!<\/p>\n<\/section>\n<footer>\n<p>\uc774 \uae00\uc774 \ub3c4\uc6c0\uc774 \ub418\uc5c8\ub2e4\uba74 \ub313\uae00\ub85c \uc758\uacac\uc744 \ub0a8\uaca8 \uc8fc\uc138\uc694!<\/p>\n<\/footer>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub0a0\uc9dc: 2023\ub144 10\uc6d4 1\uc77c \uc791\uc131\uc790: AI \uae30\uc220\uc9c0\uc6d0\ud300 \uc11c\ub860 FastAPI\ub294 Python\uc73c\ub85c \uc6f9 API\ub97c \ub9cc\ub4e4\uae30 \uc704\ud55c \ud604\ub300\uc801\uc774\uace0 \ub6f0\uc5b4\ub09c \uc131\ub2a5\uc744 \uac00\uc9c4 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python\uc758 \ube44\ub3d9\uae30 \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 \uc11c\ubc84\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub610\ud55c FastAPI\ub294 Swagger UI\uc640 ReDoc\uc744 \ud1b5\ud55c \uc790\ub3d9 \ubb38\uc11c\ud654 \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\uc5ec API \uac1c\ubc1c\uc744 \uc6a9\uc774\ud558\uac8c \ud569\ub2c8\ub2e4. \uc774\ub7f0 \ud61c\ud0dd \ub355\ubd84\uc5d0 FastAPI\ub294 \ud604\uc7ac \ub9ce\uc740 \uac1c\ubc1c\uc790\ub4e4 \uc0ac\uc774\uc5d0\uc11c \uc778\uae30\ub97c \ub04c\uace0 \uc788\ub294 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38444\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[183],"tags":[],"class_list":["post-38444","post","type-post","status-publish","format-standard","hentry","category-fastapi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/38444\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ub0a0\uc9dc: 2023\ub144 10\uc6d4 1\uc77c \uc791\uc131\uc790: AI \uae30\uc220\uc9c0\uc6d0\ud300 \uc11c\ub860 FastAPI\ub294 Python\uc73c\ub85c \uc6f9 API\ub97c \ub9cc\ub4e4\uae30 \uc704\ud55c \ud604\ub300\uc801\uc774\uace0 \ub6f0\uc5b4\ub09c \uc131\ub2a5\uc744 \uac00\uc9c4 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python\uc758 \ube44\ub3d9\uae30 \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 \uc11c\ubc84\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub610\ud55c FastAPI\ub294 Swagger UI\uc640 ReDoc\uc744 \ud1b5\ud55c \uc790\ub3d9 \ubb38\uc11c\ud654 \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\uc5ec API \uac1c\ubc1c\uc744 \uc6a9\uc774\ud558\uac8c \ud569\ub2c8\ub2e4. \uc774\ub7f0 \ud61c\ud0dd \ub355\ubd84\uc5d0 FastAPI\ub294 \ud604\uc7ac \ub9ce\uc740 \uac1c\ubc1c\uc790\ub4e4 \uc0ac\uc774\uc5d0\uc11c \uc778\uae30\ub97c \ub04c\uace0 \uc788\ub294 &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38444\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:17:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:19+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38444\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38444\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30\",\"datePublished\":\"2024-11-01T18:17:01+00:00\",\"dateModified\":\"2024-11-26T06:44:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38444\/\"},\"wordCount\":92,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38444\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38444\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:17:01+00:00\",\"dateModified\":\"2024-11-26T06:44:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38444\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38444\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38444\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/38444\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ub0a0\uc9dc: 2023\ub144 10\uc6d4 1\uc77c \uc791\uc131\uc790: AI \uae30\uc220\uc9c0\uc6d0\ud300 \uc11c\ub860 FastAPI\ub294 Python\uc73c\ub85c \uc6f9 API\ub97c \ub9cc\ub4e4\uae30 \uc704\ud55c \ud604\ub300\uc801\uc774\uace0 \ub6f0\uc5b4\ub09c \uc131\ub2a5\uc744 \uac00\uc9c4 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python\uc758 \ube44\ub3d9\uae30 \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 \uc11c\ubc84\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub610\ud55c FastAPI\ub294 Swagger UI\uc640 ReDoc\uc744 \ud1b5\ud55c \uc790\ub3d9 \ubb38\uc11c\ud654 \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\uc5ec API \uac1c\ubc1c\uc744 \uc6a9\uc774\ud558\uac8c \ud569\ub2c8\ub2e4. \uc774\ub7f0 \ud61c\ud0dd \ub355\ubd84\uc5d0 FastAPI\ub294 \ud604\uc7ac \ub9ce\uc740 \uac1c\ubc1c\uc790\ub4e4 \uc0ac\uc774\uc5d0\uc11c \uc778\uae30\ub97c \ub04c\uace0 \uc788\ub294 &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/38444\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:17:01+00:00","article_modified_time":"2024-11-26T06:44:19+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38444\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38444\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30","datePublished":"2024-11-01T18:17:01+00:00","dateModified":"2024-11-26T06:44:19+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38444\/"},"wordCount":92,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38444\/","url":"https:\/\/atmokpo.com\/w\/38444\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:17:01+00:00","dateModified":"2024-11-26T06:44:19+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38444\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38444\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38444\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c CORS \uc124\uc815\ud558\uae30"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":38332,"url":"https:\/\/atmokpo.com\/w\/38332\/","url_meta":{"origin":38444,"position":0},"title":"Express \uac1c\ubc1c \uac15\uc88c, \ubcf4\uc548 \uace0\ub824\uc0ac\ud56d \ubc0f CORS \uc815\ucc45","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \uc791\uc131\uc77c: 2024\ub144 11\uc6d4 26\uc77c 1. \uc11c\ub860 Express\ub294 Node.js\ub97c \uae30\ubc18\uc73c\ub85c \ud55c \uacbd\ub7c9 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ubc31\uc5d4\ub4dc \uc11c\ubc84 \uac1c\ubc1c\uc5d0 \ub110\ub9ac \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uadf8\ub7ec\ub098, \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \ub54c \ubcf4\uc548\uc740 \uac00\uc7a5 \uc911\uc694\ud55c \uace0\ub824\uc0ac\ud56d \uc911 \ud558\ub098\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ub300\ud55c \ubcf4\uc548 \uace0\ub824\uc0ac\ud56d\uacfc CORS(\uad50\ucc28 \ucd9c\ucc98 \ub9ac\uc18c\uc2a4 \uacf5\uc720) \uc815\ucc45\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 2. Express\uc758 \ubcf4\uc548 \uace0\ub824\uc0ac\ud56d\u2026","rel":"","context":"&quot;Express\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"Express\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/express%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38578,"url":"https:\/\/atmokpo.com\/w\/38578\/","url_meta":{"origin":38444,"position":1},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ucee8\ud14c\uc774\ub108 \uc2e4\ud589  App Runner \uc124\uc815 \ubc0f \uc2e4\ud589","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"FastAPI\ub294 \ud604\ub300\uc758 API \uc11c\ubc84 \uac1c\ubc1c\uc5d0 \ucd5c\uc801\ud654\ub41c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\uba70 \uc790\ub3d9 \ubb38\uc11c\ud654 \uae30\ub2a5\uc774 \ub6f0\uc5b4\ub098\uae30 \ub54c\ubb38\uc5d0 \ub9ce\uc740 \uac1c\ubc1c\uc790\uc640 \uae30\uc5c5\ub4e4\uc774 \uc120\ud0dd\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub85c \uac04\ub2e8\ud55c \uc11c\ubc84\ub97c \uad6c\ud604\ud558\uace0, \uc774\ub97c \ucee8\ud14c\uc774\ub108\ud654\ud558\uc5ec AWS App Runner\uc5d0 \ubc30\ud3ec\ud558\ub294 \uacfc\uc815\uc744 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. FastAPI \uc18c\uac1c FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \ube44\ub3d9\uae30 RESTful API \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc740 \uc8fc\uc694 \uae30\ub2a5\uc744\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":43390,"url":"https:\/\/atmokpo.com\/w\/43390\/","url_meta":{"origin":38444,"position":2},"title":"[\uc544\ud30c\uce58 \ucf54\ub974\ub3c4\ubc14]  \uc544\ud30c\uce58 \ucf54\ub974\ub3c4\ubc14 \uac1c\ubc1c: \ub514\ubc84\uae45 \ub3c4\uad6c \ubc0f \uae30\ubc95","author":"root","date":"2024\ub144 11\uc6d4 27\uc77c","format":false,"excerpt":"\uc544\ud30c\uce58 \ucf54\ub974\ub3c4\ubc14\ub294 \ud558\uc774\ube0c\ub9ac\ub4dc \ubaa8\ubc14\uc77c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uae30 \uc704\ud55c \uac15\ub825\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uadf8\ub7ec\ub098, \uc644\ubcbd\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4\uae30 \uc704\ud574\uc11c\ub294 \ub514\ubc84\uae45 \uacfc\uc815\uc774 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 \uc544\ud30c\uce58 \ucf54\ub974\ub3c4\ubc14 \uac1c\ubc1c\uc5d0 \uc788\uc5b4\uc11c \uc911\uc694\ud55c \ub514\ubc84\uae45 \ub3c4\uad6c \ubc0f \uae30\ubc95\uc744 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0, \uac01\uac01\uc758 \uc608\uc81c\ub97c \ud1b5\ud574 \ubcf4\ub2e4 \uc2e4\uc9c8\uc801\uc778 \uc774\ud574\ub97c \ub3d5\uaca0\uc2b5\ub2c8\ub2e4. 1. \ub514\ubc84\uae45\uc758 \uc911\uc694\uc131 \ub514\ubc84\uae45\uc740 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uac1c\ubc1c\uc5d0\uc11c \ucf54\ub4dc\uc758 \uc624\ub958\ub97c \ucc3e\uace0 \uc218\uc815\ud558\ub294 \uacfc\uc815\uc785\ub2c8\ub2e4. \uc544\ud30c\uce58 \ucf54\ub974\ub3c4\ubc14\u2026","rel":"","context":"&quot;cordova&quot;\uc5d0\uc11c","block_context":{"text":"cordova","link":"https:\/\/atmokpo.com\/w\/category\/cordova\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38574,"url":"https:\/\/atmokpo.com\/w\/38574\/","url_meta":{"origin":38444,"position":3},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc571\uc5d0\uc11c DB\uc5d0 \uc811\uc18d\ud558\uae30 \uc704\ud55c \uc900\ube44","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"FastAPI\ub294 \ucd5c\uc2e0 Python \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\ub85c, \uace0\uc131\ub2a5\uacfc \ube60\ub978 \uac1c\ubc1c \uc18d\ub3c4\ub97c \uc790\ub791\ud558\uba70 \ube44\ub3d9\uae30 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud558\uc5ec \ud6a8\uc728\uc801\uc778 \uc11c\ubc84 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc5f0\ub3d9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc62c\ubc14\ub978 \ubc29\ubc95\uc73c\ub85c DB\uc640 \uc5f0\uacb0\ud558\uae30 \uc704\ud574 \ud544\uc694\ud55c \uc900\ube44 \ub2e8\uacc4\uc640 \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \uc2e4\uc2b5\ud560 \uc218 \uc788\ub3c4\ub85d \uc900\ube44\ud588\uc2b5\ub2c8\ub2e4. 1. FastAPI \uc18c\uac1c\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38402,"url":"https:\/\/atmokpo.com\/w\/38402\/","url_meta":{"origin":38444,"position":4},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc561\uc138\uc2a4 \ud1a0\ud070 \uc0dd\uc131\uacfc \uac80\uc99d","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: 2024\ub144 11\uc6d4 26\uc77c 1. \uc11c\ub860 FastAPI\ub294 Python\uc744 \uae30\ubc18\uc73c\ub85c \ud558\ub294 \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\uba70 \ucd5c\uc801\ud654\ub41c \uc131\ub2a5\uc744 \uc790\ub791\ud569\ub2c8\ub2e4. RESTful API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 FastAPI\uc758 \ud2b9\uc9d5 \uc911 \ud558\ub098\ub294 \ub370\uc774\ud130 \uac80\uc99d\uacfc \uc790\ub3d9 \ubb38\uc11c \uc0dd\uc131 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc561\uc138\uc2a4 \ud1a0\ud070\uc744 \uc0dd\uc131\ud558\uace0 \uac80\uc99d\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ub2e4\ub8f9\ub2c8\ub2e4. \uc561\uc138\uc2a4\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38432,"url":"https:\/\/atmokpo.com\/w\/38432\/","url_meta":{"origin":38444,"position":5},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc774\ubca4\ud2b8 \ubb38\uc11c \ud074\ub798\uc2a4\uc640 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: 2024\ub144 11\uc6d4 26\uc77c 1. FastAPI\ub780? FastAPI\ub294 Python\uc758 \ube44\ub3d9\uae30 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, API \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. Python\uc758 \ud0c0\uc785 \ud78c\ud2b8\ub97c \ud65c\uc6a9\ud558\uc5ec \uac15\ub825\ud55c \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubb38\uc11c\ud654 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. FastAPI\ub294 \uc2a4\ud0c0\ud2b8\uc5c5\uc5d0\uc11c \ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uc774\ub974\uae30\uae4c\uc9c0 \ub2e4\uc591\ud55c \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc801\ud569\ud558\uba70, OpenAPI\uc640 JSON Schema\ub97c \uc9c0\uc6d0\ud558\uc5ec \uc790\ub3d9\uc73c\ub85c API \ubb38\uc11c\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ud2b9\uc9d5 \ub355\ubd84\uc5d0 FastAPI\ub294\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=38444"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38444\/revisions"}],"predecessor-version":[{"id":38445,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38444\/revisions\/38445"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}