{"id":38366,"date":"2024-11-01T17:17:56","date_gmt":"2024-11-01T17:17:56","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38366"},"modified":"2024-11-26T06:44:31","modified_gmt":"2024-11-26T06:44:31","slug":"express-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-express-js%ec%97%90%ec%84%9c-cors-%ec%84%a4%ec%a0%95%ed%95%98%eb%8a%94-%eb%b0%a9%eb%b2%95","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38366\/","title":{"rendered":"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95"},"content":{"rendered":"<p><body><\/p>\n<p>\n    \ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc5ec\ub7ec \uc11c\ubc84\uc640 API\uac00 \uc0c1\ud638\uc791\uc6a9\ud558\uba70 \uc815\ubcf4\ub97c \uc8fc\uace0\ubc1b\ub294 \ud615\ud0dc\ub85c \uc124\uacc4\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc774 \uacfc\uc815\uc5d0\uc11c CORS(Cross-Origin Resource Sharing)\ub77c\ub294 \uac1c\ub150\uc774 \uad49\uc7a5\ud788 \uc911\uc694\ud558\uac8c \uc791\uc6a9\ud569\ub2c8\ub2e4.<br \/>\n    CORS\ub294 \uc678\ubd80 \ub3c4\uba54\uc778\uc5d0\uc11c \uc790\uc6d0\uc744 \uc694\uccad\ud560 \ub54c \ube0c\ub77c\uc6b0\uc800\uac00 \uc774\ub97c \ud5c8\uc6a9\ud560\uc9c0 \uacb0\uc815\ud558\ub294 \uba54\ucee4\ub2c8\uc998\uc785\ub2c8\ub2e4.<br \/>\n    \uc774 \uae00\uc5d0\uc11c\ub294 Express.js\uc5d0\uc11c CORS\ub97c \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc790\uc138\ud558\uac8c \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h2>1. CORS\uc758 \uc774\ud574<\/h2>\n<p>\n    CORS\ub780 \ud558\ub098\uc758 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub2e4\ub978 \uc0ac\uc774\ud2b8\uc758 \uc790\uc6d0\uc5d0 \uc811\uadfc\ud558\ub294 \uac83\uc744 \ud5c8\uc6a9\ud558\ub294 \ubcf4\uc548 \uae30\ub2a5\uc785\ub2c8\ub2e4.<br \/>\n    \uc6f9 \ube0c\ub77c\uc6b0\uc800\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8\uc5d0\uc11c \ub2e4\ub978 \ub3c4\uba54\uc778\uc73c\ub85c\uc758 \uc694\uccad\uc744 \ucc28\ub2e8\ud569\ub2c8\ub2e4.<br \/>\n    \uc608\ub97c \ub4e4\uc5b4, &#8216;https:\/\/example.com&#8217;\uc5d0\uc11c \ud638\uc2a4\ud305\ub418\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 &#8216;https:\/\/api.example.com&#8217;\ub85c API \uc694\uccad\uc744 \ud558\ub824\uace0 \ud558\uba74,<br \/>\n    \ube0c\ub77c\uc6b0\uc800\ub294 \uc774\ub97c \ucc28\ub2e8\ud558\uace0 CORS \uc624\ub958\ub97c \ubc1c\uc0dd\uc2dc\ud0b5\ub2c8\ub2e4.<br \/>\n    \uc774\ub294 \uc6f9 \ubcf4\uc548\uc744 \uac15\ud654\ud558\uae30 \uc704\ud55c \uae30\ub2a5\uc785\ub2c8\ub2e4.\n<\/p>\n<h2>2. Express.js\uc5d0\uc11c CORS\ub97c \uc124\uc815\ud558\ub294 \uc774\uc720<\/h2>\n<p>\n    Express.js\ub294 \uc11c\ubc84\uc640 API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub294 \uac15\ub825\ud55c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4.<br \/>\n    \ud558\uc9c0\ub9cc \uc678\ubd80 \ub3c4\uba54\uc778\uc5d0\uc11c\uc758 \uc694\uccad\uc744 \ud5c8\uc6a9\ud558\ub824\uba74 CORS \uc124\uc815\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.<br \/>\n    \uc774\ub97c \ud1b5\ud574 \uc5ec\ub7ec\ubd84\uc758 API\uac00 \uc2e0\ub8b0\ud560 \uc218 \uc788\ub294 \ub3c4\uba54\uc778\uc5d0\uc11c\ub9cc \uc694\uccad\uc744 \ubc1b\uc744 \uc218 \uc788\ub3c4\ub85d \uc81c\uc5b4\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    CORS\ub97c \uc801\uc808\ud788 \uc124\uc815\ud558\uc9c0 \uc54a\uc73c\uba74 \ubcf4\uc548 \uc704\ud611\uc5d0 \ub178\ucd9c\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h2>3. CORS \uc124\uc815 \ubc29\ubc95<\/h2>\n<p>\n    Express.js\uc5d0\uc11c CORS\ub97c \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc740 \uc5ec\ub7ec \uac00\uc9c0\uac00 \uc788\uc9c0\ub9cc, \uac00\uc7a5 \uc77c\ubc18\uc801\uc73c\ub85c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc740 <code>cors<\/code> \ud328\ud0a4\uc9c0\ub97c \ud65c\uc6a9\ud558\ub294 \uac83\uc785\ub2c8\ub2e4.<br \/>\n    \uc774 \ud328\ud0a4\uc9c0\ub294 CORS \uad00\ub828 \ub85c\uc9c1\uc744 \uac04\ub2e8\ud558\uac8c \ucc98\ub9ac\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \uc774\uc81c \uc124\uce58 \ubc0f \uc124\uc815 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h3>3.1. CORS \ud328\ud0a4\uc9c0 \uc124\uce58\ud558\uae30<\/h3>\n<pre><code>npm install cors<\/code><\/pre>\n<p>\n    \uba3c\uc800, CORS \ud328\ud0a4\uc9c0\ub97c \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4.<br \/>\n    \uc704\uc758 \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec CORS \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4.\n<\/p>\n<h3>3.2. \uae30\ubcf8 CORS \uc124\uc815<\/h3>\n<p>\n    \uc124\uce58\uac00 \uc644\ub8cc\ub418\uba74 Express \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uc815\ud569\ub2c8\ub2e4.<br \/>\n    \uae30\ubcf8\uc801\uc778 \uc124\uc815\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.\n<\/p>\n<pre><code>javascript\nconst express = require('express');\nconst cors = require('cors');\n\nconst app = express();\napp.use(cors()); \/\/ CORS \uc124\uc815 \ucd94\uac00\n\napp.get('\/api\/data', (req, res) =&gt; {\n    res.json({ message: 'CORS\uac00 \uc124\uc815\ub41c \ub370\uc774\ud130\uc785\ub2c8\ub2e4.' });\n});\n\napp.listen(3000, () =&gt; {\n    console.log('\uc11c\ubc84\uac00 http:\/\/localhost:3000 \uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.');\n});\n<\/code><\/pre>\n<p>\n    \uc704 \ucf54\ub4dc\uc5d0\uc11c <code>app.use(cors());<\/code> \uad6c\ubb38\uc774 CORS\ub97c \ud65c\uc131\ud654\uc2dc\ud0b5\ub2c8\ub2e4.<br \/>\n    \uc774\uc81c \uc774 \uc11c\ubc84\ub294 \ubaa8\ub4e0 \ub3c4\uba54\uc778\uc5d0\uc11c\uc758 \uc694\uccad\uc744 \uc218\ub77d\ud558\uac8c \ub429\ub2c8\ub2e4.\n<\/p>\n<h3>3.3. CORS \uc635\uc158 \uc124\uc815\ud558\uae30<\/h3>\n<p>\n    \ubaa8\ub4e0 \ub3c4\uba54\uc778\uc5d0\uc11c \uc694\uccad\uc744 \uc218\ub77d\ud558\ub294 \uac83\uc740 \ubcf4\uc548\uc0c1 \uc704\ud5d8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    \ud2b9\uc815 \ub3c4\uba54\uc778\ub9cc \ud5c8\uc6a9\ud558\uace0 \uc2f6\ub2e4\uba74 CORS \uc635\uc158\uc744 \uc124\uc815\ud574\uc57c \ud569\ub2c8\ub2e4.<br \/>\n    \uc544\ub798 \uc608\uc81c\uc5d0\uc11c \ud2b9\uc815 \ub3c4\uba54\uc778\uc5d0 \ub300\ud574 \uc694\uccad\uc744 \ud5c8\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\ub4dc\ub9bd\ub2c8\ub2e4.\n<\/p>\n<pre><code>javascript\nconst express = require('express');\nconst cors = require('cors');\n\nconst app = express();\nconst allowedOrigins = ['http:\/\/example.com', 'http:\/\/another-domain.com'];\n\napp.use(cors({\n    origin: allowedOrigins, \/\/ \ud5c8\uc6a9\ub41c \ub3c4\uba54\uc778\n    methods: ['GET', 'POST'], \/\/ \ud5c8\uc6a9\ub41c HTTP \uba54\uc18c\ub4dc\n    allowedHeaders: ['Content-Type', 'Authorization'], \/\/ \ud5c8\uc6a9\ub41c \ud5e4\ub354\n}));\n\napp.get('\/api\/data', (req, res) =&gt; {\n    res.json({ message: '\ud2b9\uc815 \ub3c4\uba54\uc778\uc5d0\uc11c \uc694\uccad\ud55c \ub370\uc774\ud130\uc785\ub2c8\ub2e4.' });\n});\n\napp.listen(3000, () =&gt; {\n    console.log('\uc11c\ubc84\uac00 http:\/\/localhost:3000 \uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.');\n});\n<\/code><\/pre>\n<p>\n    \uc704 \ucf54\ub4dc\ub294 <code>allowedOrigins<\/code> \ubc30\uc5f4\uc5d0 \uc9c0\uc815\ub41c \ub3c4\uba54\uc778\ub9cc \uc694\uccad\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uc815\ud569\ub2c8\ub2e4.<br \/>\n    <code>methods<\/code>\uc640 <code>allowedHeaders<\/code> \uc635\uc158\uc73c\ub85c HTTP \uba54\uc18c\ub4dc\uc640 \ud5c8\uc6a9\ub41c \ud5e4\ub354\ub3c4 \ucd94\uac00\uc801\uc73c\ub85c \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<h3>3.4. \ud2b9\uc218\ud55c CORS \uc124\uc815<\/h3>\n<p>\n    \uac00\ub054\uc740 \ud2b9\uc815 \uc694\uad6c \uc0ac\ud56d\uc5d0 \ub530\ub77c CORS \uc815\ucc45\uc744 \uc138\ubc00\ud558\uac8c \uc124\uc815\ud574\uc57c \ud560 \ub54c\uac00 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc608\ub97c \ub4e4\uc5b4 \uc778\uc99d\ub41c \uc694\uccad\uc5d0\uc11c &#8216;Credential&#8217;\uc744 \ud5c8\uc6a9\ud558\ub824\uba74 \uc544\ub798\uc640 \uac19\uc774 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<pre><code>javascript\nconst express = require('express');\nconst cors = require('cors');\n\nconst app = express();\nconst allowedOrigins = ['http:\/\/example.com'];\n\napp.use(cors({\n    origin: allowedOrigins,\n    credentials: true, \/\/ \uc778\uc99d\ub41c \uc694\uccad \ud5c8\uc6a9\n}));\n\napp.get('\/api\/data', (req, res) =&gt; {\n    res.json({ message: '\uc778\uc99d\uc774 \ud5c8\uc6a9\ub41c \ub370\uc774\ud130\uc785\ub2c8\ub2e4.' });\n});\n\napp.listen(3000, () =&gt; {\n    console.log('\uc11c\ubc84\uac00 http:\/\/localhost:3000 \uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.');\n});\n<\/code><\/pre>\n<p>\n    \uc704 \uc608\uc2dc\uc5d0\uc11c <code>credentials: true<\/code> \uc635\uc158\uc744 \ucd94\uac00\ud568\uc73c\ub85c\uc368, \uc778\uc99d\ub41c \uc694\uccad\uc774 \ud5c8\uc6a9\ub429\ub2c8\ub2e4.<br \/>\n    \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c \uc778\uc99d \uc815\ubcf4(\uc608: \ucfe0\ud0a4)\ub97c \ud3ec\ud568\ud558\uc5ec \uc694\uccad\uc774 \uac00\ub2a5\ud55c \uc0c1\ud0dc\uac00 \ub429\ub2c8\ub2e4.\n<\/p>\n<h3>3.5. CORS \uc624\ub958 \ucc98\ub9ac\ud558\uae30<\/h3>\n<p>\n    \uc885\uc885 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uc11c CORS \uc624\ub958\uac00 \ubc1c\uc0dd\ud560 \uc218 \uc788\ub294\ub370, \uc774\ub294 \ube0c\ub77c\uc6b0\uc800\uac00 \uc694\uccad\uc744 \ucc28\ub2e8\ud558\uae30 \ub54c\ubb38\uc785\ub2c8\ub2e4.<br \/>\n    \uc11c\ubc84\uac00 \uc62c\ubc14\ub974\uac8c CORS\ub97c \uc124\uc815\ud588\ub354\ub77c\ub3c4 \uba87 \uac00\uc9c0 \uc774\uc720\ub85c \uc778\ud574 \uc624\ub958\uac00 \ubc1c\uc0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc624\ub958\ub97c \ud574\uacb0\ud558\ub824\uba74 \ub2e4\uc74c\uacfc \uac19\uc740 \uc810\uc744 \uba3c\uc800 \ud655\uc778\ud574\uc57c \ud569\ub2c8\ub2e4.\n<\/p>\n<ul>\n<li>\uc11c\ubc84\uc640 \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 \ub3c4\uba54\uc778\uc774 \uc62c\ubc14\ub974\uac8c \uc124\uc815\ub418\uc5b4 \uc788\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/li>\n<li>HTTP \uba54\uc18c\ub4dc\uc640 \ud5e4\ub354\uac00 \ud5c8\uc6a9\ub41c \uac12\uc778\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/li>\n<li>If the server is configured correctly and still causes problems, check browser extensions or security settings that might block requests.<\/li>\n<\/ul>\n<h2>4. CORS\ub97c \uc0ac\uc6a9\ud55c \uc2e4\uc81c \uc608\uc81c<\/h2>\n<p>\n    \uc774\uc81c \uc2e4\uc81c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c CORS\ub97c \uc0ac\uc6a9\ud558\ub294 \uc608\uc81c\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<br \/>\n    \uc544\ub798 \uc608\uc81c\uc5d0\uc11c\ub294 \uac04\ub2e8\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 Express.js \uc11c\ubc84\ub97c \uc124\uc815\ud558\uc5ec CORS\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.\n<\/p>\n<h3>4.1. Express.js \uc11c\ubc84 \uc124\uc815<\/h3>\n<pre><code>javascript\nconst express = require('express');\nconst cors = require('cors');\n\nconst app = express();\nconst allowedOrigins = ['http:\/\/example-client.com'];\n\napp.use(cors({\n    origin: allowedOrigins,\n    methods: ['GET', 'POST'],\n    credentials: true,\n}));\n\napp.get('\/api\/message', (req, res) =&gt; {\n    res.json({ message: '\uc548\ub155\ud558\uc138\uc694, \ud074\ub77c\uc774\uc5b8\ud2b8\uc785\ub2c8\ub2e4!' });\n});\n\napp.listen(3000, () =&gt; {\n    console.log('\uc11c\ubc84\uac00 http:\/\/localhost:3000 \uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.');\n});\n<\/code><\/pre>\n<h3>4.2. \ud074\ub77c\uc774\uc5b8\ud2b8 \ucf54\ub4dc<\/h3>\n<p>\n    Express \uc11c\ubc84\uc5d0 \uc694\uccad\ud558\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc791\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n<\/p>\n<pre><code>javascript\nfetch('http:\/\/localhost:3000\/api\/message', {\n    method: 'GET',\n    credentials: 'include', \/\/ \uc778\uc99d \uc815\ubcf4 \ud3ec\ud568\n})\n.then(response =&gt; response.json())\n.then(data =&gt; {\n    console.log(data.message); \/\/ \uc548\ub155\ud558\uc138\uc694, \ud074\ub77c\uc774\uc5b8\ud2b8\uc785\ub2c8\ub2e4!\n})\n.catch(error =&gt; {\n    console.error('\uc624\ub958 \ubc1c\uc0dd:', error);\n});\n<\/code><\/pre>\n<h2>5. \uacb0\ub860<\/h2>\n<p>\n    \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 Express.js\uc5d0\uc11c CORS\ub97c \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4.<br \/>\n    CORS \uc124\uc815\uc740 \ubcf4\uc548\uc758 \uc77c\ud658\uc73c\ub85c \ub9e4\uc6b0 \uc911\uc694\ud55c \uacfc\uc815\uc785\ub2c8\ub2e4.<br \/>\n    \uc62c\ubc14\ub974\uac8c \uc124\uc815\ud558\uba74, \uc678\ubd80 \ub3c4\uba54\uc778\uc5d0\uc11c API\ub97c \uc548\uc804\ud558\uac8c \ud65c\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    Express.js\uc5d0\uc11c CORS\ub97c \uc124\uc815\ud558\ub294 \uac83\uc740 \uac04\ub2e8\ud558\uc9c0\ub9cc,<br \/>\n    \ubcf4\uc548\uc0c1\uc758 \uc704\ud5d8\uc744 \ud53c\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc801\uc808\ud55c \uc815\ucc45\uc744 \uacc4\uc18d \uc720\uc9c0\ud558\uace0 \uad00\ub9ac\ud574\uc57c \ud569\ub2c8\ub2e4.\n<\/p>\n<p>\n    \ub354 \ub9ce\uc740 \ud301\uacfc \ubc29\ubc95\uc744 \uc54c\uace0 \uc2f6\ub2e4\uba74, \uacf5\uc2dd Express.js \ubb38\uc11c\uc640 CORS\uc5d0 \ub300\ud55c \ub9ac\uc18c\uc2a4\ub97c \ucc38\uace0\ud558\uc2dc\uae38 \ubc14\ub78d\ub2c8\ub2e4.<br \/>\n    \uc55e\uc73c\ub85c \uc5ec\ub7ec\ubd84\uc758 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c CORS\ub97c \uc801\uc808\ud788 \ud65c\uc6a9\ud558\uc5ec \uc548\uc804\ud558\uace0 \uc2e0\ub8b0\ud560 \uc218 \uc788\ub294 \uc11c\ube44\uc2a4\ub97c \uc81c\uacf5\ud558\uc2dc\uae38 \ubc14\ub78d\ub2c8\ub2e4!\n<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc5ec\ub7ec \uc11c\ubc84\uc640 API\uac00 \uc0c1\ud638\uc791\uc6a9\ud558\uba70 \uc815\ubcf4\ub97c \uc8fc\uace0\ubc1b\ub294 \ud615\ud0dc\ub85c \uc124\uacc4\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c CORS(Cross-Origin Resource Sharing)\ub77c\ub294 \uac1c\ub150\uc774 \uad49\uc7a5\ud788 \uc911\uc694\ud558\uac8c \uc791\uc6a9\ud569\ub2c8\ub2e4. CORS\ub294 \uc678\ubd80 \ub3c4\uba54\uc778\uc5d0\uc11c \uc790\uc6d0\uc744 \uc694\uccad\ud560 \ub54c \ube0c\ub77c\uc6b0\uc800\uac00 \uc774\ub97c \ud5c8\uc6a9\ud560\uc9c0 \uacb0\uc815\ud558\ub294 \uba54\ucee4\ub2c8\uc998\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Express.js\uc5d0\uc11c CORS\ub97c \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc790\uc138\ud558\uac8c \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. CORS\uc758 \uc774\ud574 CORS\ub780 \ud558\ub098\uc758 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub2e4\ub978 \uc0ac\uc774\ud2b8\uc758 \uc790\uc6d0\uc5d0 \uc811\uadfc\ud558\ub294 \uac83\uc744 \ud5c8\uc6a9\ud558\ub294 \ubcf4\uc548 \uae30\ub2a5\uc785\ub2c8\ub2e4. &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38366\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95&#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":[181],"tags":[],"class_list":["post-38366","post","type-post","status-publish","format-standard","hentry","category-express"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95 - \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\/38366\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc5ec\ub7ec \uc11c\ubc84\uc640 API\uac00 \uc0c1\ud638\uc791\uc6a9\ud558\uba70 \uc815\ubcf4\ub97c \uc8fc\uace0\ubc1b\ub294 \ud615\ud0dc\ub85c \uc124\uacc4\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c CORS(Cross-Origin Resource Sharing)\ub77c\ub294 \uac1c\ub150\uc774 \uad49\uc7a5\ud788 \uc911\uc694\ud558\uac8c \uc791\uc6a9\ud569\ub2c8\ub2e4. CORS\ub294 \uc678\ubd80 \ub3c4\uba54\uc778\uc5d0\uc11c \uc790\uc6d0\uc744 \uc694\uccad\ud560 \ub54c \ube0c\ub77c\uc6b0\uc800\uac00 \uc774\ub97c \ud5c8\uc6a9\ud560\uc9c0 \uacb0\uc815\ud558\ub294 \uba54\ucee4\ub2c8\uc998\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Express.js\uc5d0\uc11c CORS\ub97c \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc790\uc138\ud558\uac8c \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. CORS\uc758 \uc774\ud574 CORS\ub780 \ud558\ub098\uc758 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub2e4\ub978 \uc0ac\uc774\ud2b8\uc758 \uc790\uc6d0\uc5d0 \uc811\uadfc\ud558\ub294 \uac83\uc744 \ud5c8\uc6a9\ud558\ub294 \ubcf4\uc548 \uae30\ub2a5\uc785\ub2c8\ub2e4. &hellip; \ub354 \ubcf4\uae30 &quot;Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38366\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T17:17:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:31+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=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38366\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38366\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95\",\"datePublished\":\"2024-11-01T17:17:56+00:00\",\"dateModified\":\"2024-11-26T06:44:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38366\/\"},\"wordCount\":94,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Express\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38366\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38366\/\",\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T17:17:56+00:00\",\"dateModified\":\"2024-11-26T06:44:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38366\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38366\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38366\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95\"}]},{\"@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":"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95 - \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\/38366\/","og_locale":"ko_KR","og_type":"article","og_title":"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ud604\ub300 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc5ec\ub7ec \uc11c\ubc84\uc640 API\uac00 \uc0c1\ud638\uc791\uc6a9\ud558\uba70 \uc815\ubcf4\ub97c \uc8fc\uace0\ubc1b\ub294 \ud615\ud0dc\ub85c \uc124\uacc4\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc5d0\uc11c CORS(Cross-Origin Resource Sharing)\ub77c\ub294 \uac1c\ub150\uc774 \uad49\uc7a5\ud788 \uc911\uc694\ud558\uac8c \uc791\uc6a9\ud569\ub2c8\ub2e4. CORS\ub294 \uc678\ubd80 \ub3c4\uba54\uc778\uc5d0\uc11c \uc790\uc6d0\uc744 \uc694\uccad\ud560 \ub54c \ube0c\ub77c\uc6b0\uc800\uac00 \uc774\ub97c \ud5c8\uc6a9\ud560\uc9c0 \uacb0\uc815\ud558\ub294 \uba54\ucee4\ub2c8\uc998\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Express.js\uc5d0\uc11c CORS\ub97c \uc124\uc815\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc790\uc138\ud558\uac8c \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. CORS\uc758 \uc774\ud574 CORS\ub780 \ud558\ub098\uc758 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub2e4\ub978 \uc0ac\uc774\ud2b8\uc758 \uc790\uc6d0\uc5d0 \uc811\uadfc\ud558\ub294 \uac83\uc744 \ud5c8\uc6a9\ud558\ub294 \ubcf4\uc548 \uae30\ub2a5\uc785\ub2c8\ub2e4. &hellip; \ub354 \ubcf4\uae30 \"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95\"","og_url":"https:\/\/atmokpo.com\/w\/38366\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T17:17:56+00:00","article_modified_time":"2024-11-26T06:44:31+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":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38366\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38366\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95","datePublished":"2024-11-01T17:17:56+00:00","dateModified":"2024-11-26T06:44:31+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38366\/"},"wordCount":94,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Express\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38366\/","url":"https:\/\/atmokpo.com\/w\/38366\/","name":"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T17:17:56+00:00","dateModified":"2024-11-26T06:44:31+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38366\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38366\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38366\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Express \uac1c\ubc1c \uac15\uc88c, Express.js\uc5d0\uc11c CORS \uc124\uc815\ud558\ub294 \ubc29\ubc95"}]},{"@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":38366,"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":43390,"url":"https:\/\/atmokpo.com\/w\/43390\/","url_meta":{"origin":38366,"position":1},"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":43354,"url":"https:\/\/atmokpo.com\/w\/43354\/","url_meta":{"origin":38366,"position":2},"title":"[Electron]  012. Electron\uc758 \ubcf4\uc548 \ubaa8\ubc94 \uc0ac\ub840, CSP (Content Security Policy) \uc124\uc815 \ubc0f \uad8c\uc7a5 \uc0ac\ud56d","author":"root","date":"2024\ub144 11\uc6d4 26\uc77c","format":false,"excerpt":"Electron\uc740 \ub2e4\uc591\ud55c \ud50c\ub7ab\ud3fc\uc5d0\uc11c \ub370\uc2a4\ud06c\ud1b1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud560 \uc218 \uc788\ub294 \ub9e4\uc6b0 \uc720\uc6a9\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \ud558\uc9c0\ub9cc, \ubcf4\uc548\uc758 \uc911\uc694\uc131\uc744 \uac04\uacfc\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Electron \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \ub300\ud55c \ubcf4\uc548 \ubaa8\ubc94 \uc0ac\ub840\uc640 Content Security Policy(CSP) \uc124\uc815 \ubc29\ubc95 \ubc0f \uad8c\uc7a5 \uc0ac\ud56d\uc744 \uae4a\uc774 \uc788\uac8c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Electron\uc758 \ubcf4\uc548 \ubb38\uc81c \uc774\ud574\ud558\uae30 Electron\uc740 Chromium\uacfc Node.js\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \uc791\ub3d9\ud558\ubbc0\ub85c, \uc774 \ub450 \uae30\uc220\uc758\u2026","rel":"","context":"&quot;electron&quot;\uc5d0\uc11c","block_context":{"text":"electron","link":"https:\/\/atmokpo.com\/w\/category\/electron\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":41118,"url":"https:\/\/atmokpo.com\/w\/41118\/","url_meta":{"origin":38366,"position":3},"title":"45.Next.js\uc640 Nest.js\uc5d0\uc11c API \uce90\uc2f1\uacfc \uc131\ub2a5 \ucd5c\uc801\ud654, API \uc751\ub2f5 \uc18d\ub3c4\ub97c \ub192\uc774\uae30 \uc704\ud55c \ucd5c\uc801\ud654 \uc804\ub7b5","author":"root","date":"2024\ub144 11\uc6d4 06\uc77c","format":false,"excerpt":"\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 1\uc77c \uc800\uc790: \uc870\uad11\ud615 1. \uc11c\ub860 \uc624\ub298\ub0a0 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \uac1c\uc120\ud558\uae30 \uc704\ud574 \ube60\ub978 \uc751\ub2f5 \uc18d\ub3c4\ub97c \uc694\uad6c\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. Next.js\uc640 Nest.js\ub294 \uac01\uac01 \ud504\ub860\ud2b8\uc5d4\ub4dc\uc640 \ubc31\uc5d4\ub4dc\uc5d0\uc11c \ub110\ub9ac \uc0ac\uc6a9\ub418\ub294 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc774 \ub458\uc758 \uc870\ud569\uc744 \ud65c\uc6a9\ud558\uba74 \ud604\ub300\uc801\uc778 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ud6a8\uc728\uc801\uc73c\ub85c \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 API \uc751\ub2f5 \uc18d\ub3c4\ub97c \ub192\uc774\uae30 \uc704\ud55c \ub2e4\uc591\ud55c \uc804\ub7b5\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.\u2026","rel":"","context":"&quot;nextjs&quot;\uc5d0\uc11c","block_context":{"text":"nextjs","link":"https:\/\/atmokpo.com\/w\/category\/nextjs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":41114,"url":"https:\/\/atmokpo.com\/w\/41114\/","url_meta":{"origin":38366,"position":4},"title":"2.Next.js\uc640 Nest.js \uac1c\uc694\uc640 \ud658\uacbd \uc124\uc815, \uac1c\ubc1c \ud658\uacbd \uc124\uc815 \ubc0f \ucd08\uae30 \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870 \uc7a1\uae30","author":"root","date":"2024\ub144 11\uc6d4 06\uc77c","format":false,"excerpt":"\uc774 \ube14\ub85c\uadf8 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 Next.js\uc640 Nest.js\uc758 \uae30\ubcf8 \uac1c\uc694\uc640 \ud568\uaed8 \uac1c\ubc1c \ud658\uacbd \uc124\uc815, \ucd08\uae30 \ud504\ub85c\uc81d\ud2b8 \uad6c\uc131\uc744 \uc790\uc138\ud788 \uc124\uba85\ud569\ub2c8\ub2e4. 1. Next.js \uac1c\uc694 Next.js\ub294 React \uae30\ubc18\uc758 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc11c\ubc84 \uc0ac\uc774\ub4dc \ub80c\ub354\ub9c1(SSR) \ubc0f \uc815\uc801 \uc6f9\uc0ac\uc774\ud2b8 \uc0dd\uc131(SSG)\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc131\ub2a5\uc744 \ucd5c\uc801\ud654\ud558\uace0 SEO \uce5c\ud654\uc801\uc778 \ud398\uc774\uc9c0\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Next.js\ub294 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\uba70, \ud398\uc774\uc9c0 \uae30\ubc18\uc758 \ub77c\uc6b0\ud305\u2026","rel":"","context":"&quot;nextjs&quot;\uc5d0\uc11c","block_context":{"text":"nextjs","link":"https:\/\/atmokpo.com\/w\/category\/nextjs\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":43374,"url":"https:\/\/atmokpo.com\/w\/43374\/","url_meta":{"origin":38366,"position":5},"title":"[Electron]  010. Electron\uacfc Node.js \ud1b5\ud569\ud558\uae30, \ud30c\uc77c \uc2dc\uc2a4\ud15c \uc811\uadfc, API \ud638\ucd9c \ub4f1\uc758 \uc608\uc2dc","author":"root","date":"2024\ub144 11\uc6d4 26\uc77c","format":false,"excerpt":"1. Electron \uc18c\uac1c Electron\uc740 GitHub\uc5d0\uc11c \uac1c\ubc1c\ud55c \uc624\ud508\uc18c\uc2a4 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc6f9 \uae30\uc220(HTML, CSS, JavaScript)\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub370\uc2a4\ud06c\ud1b1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. Electron\uc740 Chromium\uacfc Node.js\ub97c \uacb0\ud569\ud558\uc5ec \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub370\uc2a4\ud06c\ud1b1\uc73c\ub85c \ubcc0\ud658\ud558\ub294 \ub370 \ud544\uc694\ud55c \ubaa8\ub4e0 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \uac1c\ubc1c\uc790\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc0ac\uc6a9\ub418\ub358 \uacbd\ud5d8\uc744 \uadf8\ub300\ub85c \ub370\uc2a4\ud06c\ud1b1 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc73c\ub85c \uc774\uc5b4\uac08 \uc218 \uc788\uc2b5\ub2c8\ub2e4. 2. Node.js\ub780 \ubb34\uc5c7\uc778\uac00? Node.js\ub294 \uc774\ubca4\ud2b8\u2026","rel":"","context":"&quot;electron&quot;\uc5d0\uc11c","block_context":{"text":"electron","link":"https:\/\/atmokpo.com\/w\/category\/electron\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38366","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=38366"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38366\/revisions"}],"predecessor-version":[{"id":38367,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38366\/revisions\/38367"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}