{"id":99,"date":"2025-08-13T16:09:32","date_gmt":"2025-08-13T16:09:32","guid":{"rendered":"https:\/\/hyc.eshachem.com\/program\/?p=99"},"modified":"2026-06-15T09:01:02","modified_gmt":"2026-06-15T09:01:02","slug":"%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost","status":"publish","type":"post","link":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/","title":{"rendered":"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u7576\u6211\u5011\u7528\u524d\u7aef\u6216django\u7b49\u6846\u67b6\u6253\u958b\u7db2\u7ad9\u6642\uff0c\u90fd\u662flocalhost:3000\u6216127.0.0.1:8000\u9019\u4e9b\u53ea\u6709\u81ea\u5df1\u624d\u80fd\u9023\u4e0a\u7684\u7db2\u3002<br><br>\u5982\u679c\u8981\u7d66\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u770b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8981\u4ecb\u7d39\u7684\u9019\u500b\u5de5\u5177 \u2014 <strong>ngrok<\/strong> \u4f86\u5efa\u7acb\u81e8\u6642\u7db2\u57df<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h1 class=\"wp-block-heading\" id=\"%e8%a8%bb%e5%86%8a\">\u8a3b\u518a<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f9e2023\u5e74\u958b\u59cb\uff0c\u8981\u4f7f\u7528ngrok\u8981\u5148\u6709\u5e33\u865f\uff0c\u6240\u4ee5\u5148\u53bb\u5b98\u7db2\u8a3b\u518a\u5f8c\u6703\u6536\u5230\u9a57\u8b49email\uff0c\u5728\u5de6\u5074\u9078\u55ae\u4e2d\u627e\u5230<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your Authtoken<br>\u8907\u88fdtoken<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"135\" src=\"https:\/\/i0.wp.com\/hyc.eshachem.com\/program\/wp-content\/uploads\/2025\/08\/image.png?fit=745%2C135&amp;ssl=1\" alt=\"\" class=\"wp-image-270\" srcset=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2025\/08\/image.png 745w, https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2025\/08\/image-300x54.png 300w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"%e4%b8%8b%e8%bc%89\">\u4e0b\u8f09<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/ngrok.com\/downloads\/windows?tab=download\">\u4e0b\u8f09\u7db2\u5740<\/a><br>\u4e0b\u8f09\u597d\u5f8c\u89e3\u58d3\u7e2e\u6253\u958bexe\u6a94\u6848\uff0c\u8cbc\u4e0a\u4e0b\u9762\u9019\u6bb5\u548ctoken<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"HTML, XML\" data-shcb-language-slug=\"xml\"><span><code class=\"hljs language-xml\">cd C:\\Users\\user\\Downloads\\ngrok-v3-stable-windows-amd64\nngrok config add-authtoken <span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">\u4f60\u7684authtoken<\/span>&gt;<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">HTML, XML<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">xml<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h1 class=\"wp-block-heading\" id=\"%e7%9b%a3%e8%81%bd\">\u76e3\u807d<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a5\u4e0b\u4f86\u8981\u8b93ngrok\u76e3\u807d\u4f60\u7684port\u865f<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">ngrok http 8000<\/code><\/span><\/pre>\n\n\n<h1 class=\"wp-block-heading\" id=\"%e8%b7%a8%e5%9f%9fapi%e5%85%81%e8%a8%b1\">\u8de8\u57dfAPI\u5141\u8a31<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728setting<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">ALLOWED_HOSTS = [<span class=\"hljs-string\">'*'<\/span>]\nCSRF_TRUSTED_ORIGINS = [<span class=\"hljs-string\">'https:\/\/*.ngrok-free.app'<\/span>]<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h1 class=\"wp-block-heading\" id=\"%e4%b8%8b%e6%ac%a1%e4%bd%bf%e7%94%a8\">\u4e0b\u6b21\u4f7f\u7528<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\u8981\u900f\u904e\u7d42\u7aef\u6a5f\u6253\u958b<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"\">\u9032\u53bbngrok.exe\u6240\u5728\u7684\u8cc7\u6599\u593e<br>a. <code>cd C:\\Users\\user\\OneDrive\\\u684c\u9762<\/code>(\u6211\u628a\u5b83\u653e\u5728\u684c\u9762\u6240\u4ee5\u662f\u9032\u5165\u684c\u9762)<\/li>\n\n\n\n<li class=\"\"><code>bash= ngrok config add-authtoken &lt;\u4f60\u7684authtoken&gt; ngrok http 8000<\/code><\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<p class=\"wp-block-paragraph\">2CYwdtikP3b632Uo5WGQ0VxdnwJ_7PGK6wXcc9DFggK3MX32Y<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7576\u6211\u5011\u7528\u524d\u7aef\u6216django\u7b49\u6846\u67b6\u6253\u958b\u7db2\u7ad9\u6642\uff0c\u90fd\u662flocalhost:3000\u6216127.0.0.1:8000\u9019\u4e9b\u53ea\u6709\u81ea\u5df1\u624d\u80fd\u9023\u4e0a\u7684\u7db2\u3002 \u5982\u679c\u8981\u7d66\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u770b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8981\u4ecb\u7d39\u7684\u9019\u500b\u5de5\u5177 \u2014 ngrok \u4f86\u5efa\u7acb\u81e8\u6642\u7db2\u57df \u8a3b\u518a \u5f9e2023\u5e74\u958b\u59cb\uff0c\u8981\u4f7f\u7528ngrok\u8981\u5148\u6709\u5e33\u865f\uff0c\u6240\u4ee5\u5148\u53bb\u5b98\u7db2\u8a3b\u518a\u5f8c\u6703\u6536\u5230\u9a57\u8b49email\uff0c\u5728\u5de6\u5074\u9078\u55ae\u4e2d\u627e\u5230 Your Authtoken\u8907\u88fdtoken \u4e0b\u8f09 \u4e0b\u8f09\u7db2\u5740\u4e0b\u8f09\u597d\u5f8c\u89e3\u58d3\u7e2e\u6253\u958bexe\u6a94\u6848\uff0c\u8cbc\u4e0a\u4e0b\u9762\u9019\u6bb5\u548ctoken \u76e3\u807d \u63a5\u4e0b\u4f86\u8981\u8b93ngrok\u76e3\u807d\u4f60\u7684port\u865f \u8de8\u57dfAPI\u5141\u8a31 \u5728setting \u4e0b\u6b21\u4f7f\u7528 \u8981\u900f\u904e\u7d42\u7aef\u6a5f\u6253\u958b 2CYwdtikP3b632Uo5WGQ0VxdnwJ_7PGK6wXcc9DFggK3MX32Y<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[41],"tags":[],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-notes"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u7576\u6211\u5011\u7528\u524d\u7aef\u6216django\u7b49\u6846\u67b6\u6253\u958b\u7db2\u7ad9\u6642\uff0c\u90fd\u662flocalhost:3000\u6216127.0.0.1:8000\u9019\u4e9b\u53ea\u6709\u81ea\u5df1\u624d\u80fd\u9023\u4e0a\u7684\u7db2\u3002\u5982\u679c\u8981\u7d66\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u770b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8981\u4ecb\u7d39\u7684\u9019\u500b\u5de5\u5177 -- ngrok \u4f86\u5efa\u7acb\u81e8\u6642\u7db2\u57df \u8a3b\u518a \u5f9e2023\u5e74\u958b\u59cb\uff0c\u8981\u4f7f\u7528ngrok\u8981\u5148\u6709\u5e33\u865f\uff0c\u6240\u4ee5\u5148\u53bb\u5b98\u7db2\u8a3b\u518a\u5f8c\u6703\u6536\u5230\u9a57\u8b49email\uff0c\u5728\u5de6\u5074\u9078\u55ae\u4e2d\u627e\u5230 Your Authtoken\u8907\u88fdtoken \u4e0b\u8f09 \u4e0b\u8f09\u7db2\u5740\u4e0b\u8f09\u597d\u5f8c\u89e3\u58d3\u7e2e\u6253\u958bexe\u6a94\u6848\uff0c\u8cbc\u4e0a\u4e0b\u9762\u9019\u6bb5\u548ctoken cd C:\\Users\\user\\Downloads\\ngrok-v3-stable-windows-amd64 ngrok config add-authtoken \u76e3\u807d \u63a5\u4e0b\u4f86\u8981\u8b93ngrok\u76e3\u807d\u4f60\u7684port\u865f ngrok http 8000 \u8de8\u57dfAPI\u5141\u8a31 \u5728setting ALLOWED_HOSTS = [&#039;*&#039;] CSRF_TRUSTED_ORIGINS = [&#039;https:\/\/*.ngrok-free.app&#039;] \u4e0b\u6b21\u4f7f\u7528 \u8981\u900f\u904e\u7d42\u7aef\u6a5f\u6253\u958b \u9032\u53bbngrok.exe\u6240\u5728\u7684\u8cc7\u6599\u593ea. cd C:\\Users\\user\\OneDrive\\\u684c\u9762(\u6211\u628a\u5b83\u653e\u5728\u684c\u9762\u6240\u4ee5\u662f\u9032\u5165\u684c\u9762) bash= ngrok config add-authtoken ngrok http 8000 2CYwdtikP3b632Uo5WGQ0VxdnwJ_7PGK6wXcc9DFggK3MX32Y\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"H.Y. Chen\"\/>\n\t<meta name=\"google-site-verification\" content=\"-324YR5tomynX5FeTW2lTMHIX0KmPBvpxjXpOhXwi1Q\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"HyC Wiki - Technical articles\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost - HyC Wiki\" \/>\n\t\t<meta property=\"og:description\" content=\"\u7576\u6211\u5011\u7528\u524d\u7aef\u6216django\u7b49\u6846\u67b6\u6253\u958b\u7db2\u7ad9\u6642\uff0c\u90fd\u662flocalhost:3000\u6216127.0.0.1:8000\u9019\u4e9b\u53ea\u6709\u81ea\u5df1\u624d\u80fd\u9023\u4e0a\u7684\u7db2\u3002\u5982\u679c\u8981\u7d66\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u770b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8981\u4ecb\u7d39\u7684\u9019\u500b\u5de5\u5177 -- ngrok \u4f86\u5efa\u7acb\u81e8\u6642\u7db2\u57df \u8a3b\u518a \u5f9e2023\u5e74\u958b\u59cb\uff0c\u8981\u4f7f\u7528ngrok\u8981\u5148\u6709\u5e33\u865f\uff0c\u6240\u4ee5\u5148\u53bb\u5b98\u7db2\u8a3b\u518a\u5f8c\u6703\u6536\u5230\u9a57\u8b49email\uff0c\u5728\u5de6\u5074\u9078\u55ae\u4e2d\u627e\u5230 Your Authtoken\u8907\u88fdtoken \u4e0b\u8f09 \u4e0b\u8f09\u7db2\u5740\u4e0b\u8f09\u597d\u5f8c\u89e3\u58d3\u7e2e\u6253\u958bexe\u6a94\u6848\uff0c\u8cbc\u4e0a\u4e0b\u9762\u9019\u6bb5\u548ctoken cd C:\\Users\\user\\Downloads\\ngrok-v3-stable-windows-amd64 ngrok config add-authtoken \u76e3\u807d \u63a5\u4e0b\u4f86\u8981\u8b93ngrok\u76e3\u807d\u4f60\u7684port\u865f ngrok http 8000 \u8de8\u57dfAPI\u5141\u8a31 \u5728setting ALLOWED_HOSTS = [&#039;*&#039;] CSRF_TRUSTED_ORIGINS = [&#039;https:\/\/*.ngrok-free.app&#039;] \u4e0b\u6b21\u4f7f\u7528 \u8981\u900f\u904e\u7d42\u7aef\u6a5f\u6253\u958b \u9032\u53bbngrok.exe\u6240\u5728\u7684\u8cc7\u6599\u593ea. cd C:\\Users\\user\\OneDrive\\\u684c\u9762(\u6211\u628a\u5b83\u653e\u5728\u684c\u9762\u6240\u4ee5\u662f\u9032\u5165\u684c\u9762) bash= ngrok config add-authtoken ngrok http 8000 2CYwdtikP3b632Uo5WGQ0VxdnwJ_7PGK6wXcc9DFggK3MX32Y\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"64\" \/>\n\t\t<meta property=\"og:image:height\" content=\"64\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2025-08-13T16:09:32+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-06-15T09:01:02+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost - HyC Wiki\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u7576\u6211\u5011\u7528\u524d\u7aef\u6216django\u7b49\u6846\u67b6\u6253\u958b\u7db2\u7ad9\u6642\uff0c\u90fd\u662flocalhost:3000\u6216127.0.0.1:8000\u9019\u4e9b\u53ea\u6709\u81ea\u5df1\u624d\u80fd\u9023\u4e0a\u7684\u7db2\u3002\u5982\u679c\u8981\u7d66\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u770b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8981\u4ecb\u7d39\u7684\u9019\u500b\u5de5\u5177 -- ngrok \u4f86\u5efa\u7acb\u81e8\u6642\u7db2\u57df \u8a3b\u518a \u5f9e2023\u5e74\u958b\u59cb\uff0c\u8981\u4f7f\u7528ngrok\u8981\u5148\u6709\u5e33\u865f\uff0c\u6240\u4ee5\u5148\u53bb\u5b98\u7db2\u8a3b\u518a\u5f8c\u6703\u6536\u5230\u9a57\u8b49email\uff0c\u5728\u5de6\u5074\u9078\u55ae\u4e2d\u627e\u5230 Your Authtoken\u8907\u88fdtoken \u4e0b\u8f09 \u4e0b\u8f09\u7db2\u5740\u4e0b\u8f09\u597d\u5f8c\u89e3\u58d3\u7e2e\u6253\u958bexe\u6a94\u6848\uff0c\u8cbc\u4e0a\u4e0b\u9762\u9019\u6bb5\u548ctoken cd C:\\Users\\user\\Downloads\\ngrok-v3-stable-windows-amd64 ngrok config add-authtoken \u76e3\u807d \u63a5\u4e0b\u4f86\u8981\u8b93ngrok\u76e3\u807d\u4f60\u7684port\u865f ngrok http 8000 \u8de8\u57dfAPI\u5141\u8a31 \u5728setting ALLOWED_HOSTS = [&#039;*&#039;] CSRF_TRUSTED_ORIGINS = [&#039;https:\/\/*.ngrok-free.app&#039;] \u4e0b\u6b21\u4f7f\u7528 \u8981\u900f\u904e\u7d42\u7aef\u6a5f\u6253\u958b \u9032\u53bbngrok.exe\u6240\u5728\u7684\u8cc7\u6599\u593ea. cd C:\\Users\\user\\OneDrive\\\u684c\u9762(\u6211\u628a\u5b83\u653e\u5728\u684c\u9762\u6240\u4ee5\u662f\u9032\u5165\u684c\u9762) bash= ngrok config add-authtoken ngrok http 8000 2CYwdtikP3b632Uo5WGQ0VxdnwJ_7PGK6wXcc9DFggK3MX32Y\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#blogposting\",\"name\":\"\\u4f7f\\u7528 ngrok \\u4f7f\\u4e0d\\u540c\\u7db2\\u8def\\u7684\\u4eba\\u80fd\\u9023\\u4e0a\\u4f60\\u7684localhost - HyC Wiki\",\"headline\":\"\\u4f7f\\u7528 ngrok \\u4f7f\\u4e0d\\u540c\\u7db2\\u8def\\u7684\\u4eba\\u80fd\\u9023\\u4e0a\\u4f60\\u7684localhost\",\"author\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/author\\\/hychen\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/hyc.eshachem.com\\\/program\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/image.png?fit=745%2C135&amp;ssl=1\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#articleImage\"},\"datePublished\":\"2025-08-13T16:09:32+00:00\",\"dateModified\":\"2026-06-15T09:01:02+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#webpage\"},\"articleSection\":\"Notes\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/category\\\/notes\\\/#listItem\",\"name\":\"Notes\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/category\\\/notes\\\/#listItem\",\"position\":2,\"name\":\"Notes\",\"item\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/category\\\/notes\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#listItem\",\"name\":\"\\u4f7f\\u7528 ngrok \\u4f7f\\u4e0d\\u540c\\u7db2\\u8def\\u7684\\u4eba\\u80fd\\u9023\\u4e0a\\u4f60\\u7684localhost\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#listItem\",\"position\":3,\"name\":\"\\u4f7f\\u7528 ngrok \\u4f7f\\u4e0d\\u540c\\u7db2\\u8def\\u7684\\u4eba\\u80fd\\u9023\\u4e0a\\u4f60\\u7684localhost\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/category\\\/notes\\\/#listItem\",\"name\":\"Notes\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#person\",\"name\":\"H.Y. Chen\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"H.Y. Chen\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/author\\\/hychen\\\/#author\",\"url\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/author\\\/hychen\\\/\",\"name\":\"H.Y. Chen\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"H.Y. Chen\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#webpage\",\"url\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/\",\"name\":\"\\u4f7f\\u7528 ngrok \\u4f7f\\u4e0d\\u540c\\u7db2\\u8def\\u7684\\u4eba\\u80fd\\u9023\\u4e0a\\u4f60\\u7684localhost - HyC Wiki\",\"description\":\"\\u7576\\u6211\\u5011\\u7528\\u524d\\u7aef\\u6216django\\u7b49\\u6846\\u67b6\\u6253\\u958b\\u7db2\\u7ad9\\u6642\\uff0c\\u90fd\\u662flocalhost:3000\\u6216127.0.0.1:8000\\u9019\\u4e9b\\u53ea\\u6709\\u81ea\\u5df1\\u624d\\u80fd\\u9023\\u4e0a\\u7684\\u7db2\\u3002\\u5982\\u679c\\u8981\\u7d66\\u4e0d\\u540c\\u7db2\\u8def\\u7684\\u4eba\\u770b\\uff0c\\u53ef\\u4ee5\\u4f7f\\u7528\\u8981\\u4ecb\\u7d39\\u7684\\u9019\\u500b\\u5de5\\u5177 -- ngrok \\u4f86\\u5efa\\u7acb\\u81e8\\u6642\\u7db2\\u57df \\u8a3b\\u518a \\u5f9e2023\\u5e74\\u958b\\u59cb\\uff0c\\u8981\\u4f7f\\u7528ngrok\\u8981\\u5148\\u6709\\u5e33\\u865f\\uff0c\\u6240\\u4ee5\\u5148\\u53bb\\u5b98\\u7db2\\u8a3b\\u518a\\u5f8c\\u6703\\u6536\\u5230\\u9a57\\u8b49email\\uff0c\\u5728\\u5de6\\u5074\\u9078\\u55ae\\u4e2d\\u627e\\u5230 Your Authtoken\\u8907\\u88fdtoken \\u4e0b\\u8f09 \\u4e0b\\u8f09\\u7db2\\u5740\\u4e0b\\u8f09\\u597d\\u5f8c\\u89e3\\u58d3\\u7e2e\\u6253\\u958bexe\\u6a94\\u6848\\uff0c\\u8cbc\\u4e0a\\u4e0b\\u9762\\u9019\\u6bb5\\u548ctoken cd C:\\\\Users\\\\user\\\\Downloads\\\\ngrok-v3-stable-windows-amd64 ngrok config add-authtoken \\u76e3\\u807d \\u63a5\\u4e0b\\u4f86\\u8981\\u8b93ngrok\\u76e3\\u807d\\u4f60\\u7684port\\u865f ngrok http 8000 \\u8de8\\u57dfAPI\\u5141\\u8a31 \\u5728setting ALLOWED_HOSTS = ['*'] CSRF_TRUSTED_ORIGINS = ['https:\\\/\\\/*.ngrok-free.app'] \\u4e0b\\u6b21\\u4f7f\\u7528 \\u8981\\u900f\\u904e\\u7d42\\u7aef\\u6a5f\\u6253\\u958b \\u9032\\u53bbngrok.exe\\u6240\\u5728\\u7684\\u8cc7\\u6599\\u593ea. cd C:\\\\Users\\\\user\\\\OneDrive\\\\\\u684c\\u9762(\\u6211\\u628a\\u5b83\\u653e\\u5728\\u684c\\u9762\\u6240\\u4ee5\\u662f\\u9032\\u5165\\u684c\\u9762) bash= ngrok config add-authtoken ngrok http 8000 2CYwdtikP3b632Uo5WGQ0VxdnwJ_7PGK6wXcc9DFggK3MX32Y\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/author\\\/hychen\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/author\\\/hychen\\\/#author\"},\"datePublished\":\"2025-08-13T16:09:32+00:00\",\"dateModified\":\"2026-06-15T09:01:02+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#website\",\"url\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/\",\"name\":\"HyC Wiki\",\"description\":\"Technical articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost - HyC Wiki","description":"\u7576\u6211\u5011\u7528\u524d\u7aef\u6216django\u7b49\u6846\u67b6\u6253\u958b\u7db2\u7ad9\u6642\uff0c\u90fd\u662flocalhost:3000\u6216127.0.0.1:8000\u9019\u4e9b\u53ea\u6709\u81ea\u5df1\u624d\u80fd\u9023\u4e0a\u7684\u7db2\u3002\u5982\u679c\u8981\u7d66\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u770b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8981\u4ecb\u7d39\u7684\u9019\u500b\u5de5\u5177 -- ngrok \u4f86\u5efa\u7acb\u81e8\u6642\u7db2\u57df \u8a3b\u518a \u5f9e2023\u5e74\u958b\u59cb\uff0c\u8981\u4f7f\u7528ngrok\u8981\u5148\u6709\u5e33\u865f\uff0c\u6240\u4ee5\u5148\u53bb\u5b98\u7db2\u8a3b\u518a\u5f8c\u6703\u6536\u5230\u9a57\u8b49email\uff0c\u5728\u5de6\u5074\u9078\u55ae\u4e2d\u627e\u5230 Your Authtoken\u8907\u88fdtoken \u4e0b\u8f09 \u4e0b\u8f09\u7db2\u5740\u4e0b\u8f09\u597d\u5f8c\u89e3\u58d3\u7e2e\u6253\u958bexe\u6a94\u6848\uff0c\u8cbc\u4e0a\u4e0b\u9762\u9019\u6bb5\u548ctoken cd C:\\Users\\user\\Downloads\\ngrok-v3-stable-windows-amd64 ngrok config add-authtoken \u76e3\u807d \u63a5\u4e0b\u4f86\u8981\u8b93ngrok\u76e3\u807d\u4f60\u7684port\u865f ngrok http 8000 \u8de8\u57dfAPI\u5141\u8a31 \u5728setting ALLOWED_HOSTS = ['*'] CSRF_TRUSTED_ORIGINS = ['https:\/\/*.ngrok-free.app'] \u4e0b\u6b21\u4f7f\u7528 \u8981\u900f\u904e\u7d42\u7aef\u6a5f\u6253\u958b \u9032\u53bbngrok.exe\u6240\u5728\u7684\u8cc7\u6599\u593ea. cd C:\\Users\\user\\OneDrive\\\u684c\u9762(\u6211\u628a\u5b83\u653e\u5728\u684c\u9762\u6240\u4ee5\u662f\u9032\u5165\u684c\u9762) bash= ngrok config add-authtoken ngrok http 8000 2CYwdtikP3b632Uo5WGQ0VxdnwJ_7PGK6wXcc9DFggK3MX32Y","canonical_url":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"-324YR5tomynX5FeTW2lTMHIX0KmPBvpxjXpOhXwi1Q","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#blogposting","name":"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost - HyC Wiki","headline":"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost","author":{"@id":"https:\/\/hyc.eshachem.com\/program\/author\/hychen\/#author"},"publisher":{"@id":"https:\/\/hyc.eshachem.com\/program\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/hyc.eshachem.com\/program\/wp-content\/uploads\/2025\/08\/image.png?fit=745%2C135&amp;ssl=1","@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#articleImage"},"datePublished":"2025-08-13T16:09:32+00:00","dateModified":"2026-06-15T09:01:02+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#webpage"},"isPartOf":{"@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#webpage"},"articleSection":"Notes"},{"@type":"BreadcrumbList","@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program#listItem","position":1,"name":"Home","item":"https:\/\/hyc.eshachem.com\/program","nextItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/category\/notes\/#listItem","name":"Notes"}},{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/category\/notes\/#listItem","position":2,"name":"Notes","item":"https:\/\/hyc.eshachem.com\/program\/category\/notes\/","nextItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#listItem","name":"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost"},"previousItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#listItem","position":3,"name":"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost","previousItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/category\/notes\/#listItem","name":"Notes"}}]},{"@type":"Person","@id":"https:\/\/hyc.eshachem.com\/program\/#person","name":"H.Y. Chen","image":{"@type":"ImageObject","@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g","width":96,"height":96,"caption":"H.Y. Chen"}},{"@type":"Person","@id":"https:\/\/hyc.eshachem.com\/program\/author\/hychen\/#author","url":"https:\/\/hyc.eshachem.com\/program\/author\/hychen\/","name":"H.Y. Chen","image":{"@type":"ImageObject","@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g","width":96,"height":96,"caption":"H.Y. Chen"}},{"@type":"WebPage","@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#webpage","url":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/","name":"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost - HyC Wiki","description":"\u7576\u6211\u5011\u7528\u524d\u7aef\u6216django\u7b49\u6846\u67b6\u6253\u958b\u7db2\u7ad9\u6642\uff0c\u90fd\u662flocalhost:3000\u6216127.0.0.1:8000\u9019\u4e9b\u53ea\u6709\u81ea\u5df1\u624d\u80fd\u9023\u4e0a\u7684\u7db2\u3002\u5982\u679c\u8981\u7d66\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u770b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8981\u4ecb\u7d39\u7684\u9019\u500b\u5de5\u5177 -- ngrok \u4f86\u5efa\u7acb\u81e8\u6642\u7db2\u57df \u8a3b\u518a \u5f9e2023\u5e74\u958b\u59cb\uff0c\u8981\u4f7f\u7528ngrok\u8981\u5148\u6709\u5e33\u865f\uff0c\u6240\u4ee5\u5148\u53bb\u5b98\u7db2\u8a3b\u518a\u5f8c\u6703\u6536\u5230\u9a57\u8b49email\uff0c\u5728\u5de6\u5074\u9078\u55ae\u4e2d\u627e\u5230 Your Authtoken\u8907\u88fdtoken \u4e0b\u8f09 \u4e0b\u8f09\u7db2\u5740\u4e0b\u8f09\u597d\u5f8c\u89e3\u58d3\u7e2e\u6253\u958bexe\u6a94\u6848\uff0c\u8cbc\u4e0a\u4e0b\u9762\u9019\u6bb5\u548ctoken cd C:\\Users\\user\\Downloads\\ngrok-v3-stable-windows-amd64 ngrok config add-authtoken \u76e3\u807d \u63a5\u4e0b\u4f86\u8981\u8b93ngrok\u76e3\u807d\u4f60\u7684port\u865f ngrok http 8000 \u8de8\u57dfAPI\u5141\u8a31 \u5728setting ALLOWED_HOSTS = ['*'] CSRF_TRUSTED_ORIGINS = ['https:\/\/*.ngrok-free.app'] \u4e0b\u6b21\u4f7f\u7528 \u8981\u900f\u904e\u7d42\u7aef\u6a5f\u6253\u958b \u9032\u53bbngrok.exe\u6240\u5728\u7684\u8cc7\u6599\u593ea. cd C:\\Users\\user\\OneDrive\\\u684c\u9762(\u6211\u628a\u5b83\u653e\u5728\u684c\u9762\u6240\u4ee5\u662f\u9032\u5165\u684c\u9762) bash= ngrok config add-authtoken ngrok http 8000 2CYwdtikP3b632Uo5WGQ0VxdnwJ_7PGK6wXcc9DFggK3MX32Y","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/hyc.eshachem.com\/program\/#website"},"breadcrumb":{"@id":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/#breadcrumblist"},"author":{"@id":"https:\/\/hyc.eshachem.com\/program\/author\/hychen\/#author"},"creator":{"@id":"https:\/\/hyc.eshachem.com\/program\/author\/hychen\/#author"},"datePublished":"2025-08-13T16:09:32+00:00","dateModified":"2026-06-15T09:01:02+00:00"},{"@type":"WebSite","@id":"https:\/\/hyc.eshachem.com\/program\/#website","url":"https:\/\/hyc.eshachem.com\/program\/","name":"HyC Wiki","description":"Technical articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/hyc.eshachem.com\/program\/#person"}}]},"og:locale":"en_US","og:site_name":"HyC Wiki - Technical articles","og:type":"article","og:title":"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost - HyC Wiki","og:description":"\u7576\u6211\u5011\u7528\u524d\u7aef\u6216django\u7b49\u6846\u67b6\u6253\u958b\u7db2\u7ad9\u6642\uff0c\u90fd\u662flocalhost:3000\u6216127.0.0.1:8000\u9019\u4e9b\u53ea\u6709\u81ea\u5df1\u624d\u80fd\u9023\u4e0a\u7684\u7db2\u3002\u5982\u679c\u8981\u7d66\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u770b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8981\u4ecb\u7d39\u7684\u9019\u500b\u5de5\u5177 -- ngrok \u4f86\u5efa\u7acb\u81e8\u6642\u7db2\u57df \u8a3b\u518a \u5f9e2023\u5e74\u958b\u59cb\uff0c\u8981\u4f7f\u7528ngrok\u8981\u5148\u6709\u5e33\u865f\uff0c\u6240\u4ee5\u5148\u53bb\u5b98\u7db2\u8a3b\u518a\u5f8c\u6703\u6536\u5230\u9a57\u8b49email\uff0c\u5728\u5de6\u5074\u9078\u55ae\u4e2d\u627e\u5230 Your Authtoken\u8907\u88fdtoken \u4e0b\u8f09 \u4e0b\u8f09\u7db2\u5740\u4e0b\u8f09\u597d\u5f8c\u89e3\u58d3\u7e2e\u6253\u958bexe\u6a94\u6848\uff0c\u8cbc\u4e0a\u4e0b\u9762\u9019\u6bb5\u548ctoken cd C:\\Users\\user\\Downloads\\ngrok-v3-stable-windows-amd64 ngrok config add-authtoken \u76e3\u807d \u63a5\u4e0b\u4f86\u8981\u8b93ngrok\u76e3\u807d\u4f60\u7684port\u865f ngrok http 8000 \u8de8\u57dfAPI\u5141\u8a31 \u5728setting ALLOWED_HOSTS = ['*'] CSRF_TRUSTED_ORIGINS = ['https:\/\/*.ngrok-free.app'] \u4e0b\u6b21\u4f7f\u7528 \u8981\u900f\u904e\u7d42\u7aef\u6a5f\u6253\u958b \u9032\u53bbngrok.exe\u6240\u5728\u7684\u8cc7\u6599\u593ea. cd C:\\Users\\user\\OneDrive\\\u684c\u9762(\u6211\u628a\u5b83\u653e\u5728\u684c\u9762\u6240\u4ee5\u662f\u9032\u5165\u684c\u9762) bash= ngrok config add-authtoken ngrok http 8000 2CYwdtikP3b632Uo5WGQ0VxdnwJ_7PGK6wXcc9DFggK3MX32Y","og:url":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/","og:image":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png","og:image:secure_url":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png","og:image:width":64,"og:image:height":64,"article:published_time":"2025-08-13T16:09:32+00:00","article:modified_time":"2026-06-15T09:01:02+00:00","twitter:card":"summary_large_image","twitter:title":"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost - HyC Wiki","twitter:description":"\u7576\u6211\u5011\u7528\u524d\u7aef\u6216django\u7b49\u6846\u67b6\u6253\u958b\u7db2\u7ad9\u6642\uff0c\u90fd\u662flocalhost:3000\u6216127.0.0.1:8000\u9019\u4e9b\u53ea\u6709\u81ea\u5df1\u624d\u80fd\u9023\u4e0a\u7684\u7db2\u3002\u5982\u679c\u8981\u7d66\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u770b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8981\u4ecb\u7d39\u7684\u9019\u500b\u5de5\u5177 -- ngrok \u4f86\u5efa\u7acb\u81e8\u6642\u7db2\u57df \u8a3b\u518a \u5f9e2023\u5e74\u958b\u59cb\uff0c\u8981\u4f7f\u7528ngrok\u8981\u5148\u6709\u5e33\u865f\uff0c\u6240\u4ee5\u5148\u53bb\u5b98\u7db2\u8a3b\u518a\u5f8c\u6703\u6536\u5230\u9a57\u8b49email\uff0c\u5728\u5de6\u5074\u9078\u55ae\u4e2d\u627e\u5230 Your Authtoken\u8907\u88fdtoken \u4e0b\u8f09 \u4e0b\u8f09\u7db2\u5740\u4e0b\u8f09\u597d\u5f8c\u89e3\u58d3\u7e2e\u6253\u958bexe\u6a94\u6848\uff0c\u8cbc\u4e0a\u4e0b\u9762\u9019\u6bb5\u548ctoken cd C:\\Users\\user\\Downloads\\ngrok-v3-stable-windows-amd64 ngrok config add-authtoken \u76e3\u807d \u63a5\u4e0b\u4f86\u8981\u8b93ngrok\u76e3\u807d\u4f60\u7684port\u865f ngrok http 8000 \u8de8\u57dfAPI\u5141\u8a31 \u5728setting ALLOWED_HOSTS = ['*'] CSRF_TRUSTED_ORIGINS = ['https:\/\/*.ngrok-free.app'] \u4e0b\u6b21\u4f7f\u7528 \u8981\u900f\u904e\u7d42\u7aef\u6a5f\u6253\u958b \u9032\u53bbngrok.exe\u6240\u5728\u7684\u8cc7\u6599\u593ea. cd C:\\Users\\user\\OneDrive\\\u684c\u9762(\u6211\u628a\u5b83\u653e\u5728\u684c\u9762\u6240\u4ee5\u662f\u9032\u5165\u684c\u9762) bash= ngrok config add-authtoken ngrok http 8000 2CYwdtikP3b632Uo5WGQ0VxdnwJ_7PGK6wXcc9DFggK3MX32Y","twitter:image":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png"},"aioseo_meta_data":{"post_id":"99","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-07-28 14:29:00","updated":"2026-07-28 14:29:00"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/hyc.eshachem.com\/program\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/hyc.eshachem.com\/program\/category\/notes\/\" title=\"Notes\">Notes<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/hyc.eshachem.com\/program"},{"label":"Notes","link":"https:\/\/hyc.eshachem.com\/program\/category\/notes\/"},{"label":"\u4f7f\u7528 ngrok \u4f7f\u4e0d\u540c\u7db2\u8def\u7684\u4eba\u80fd\u9023\u4e0a\u4f60\u7684localhost","link":"https:\/\/hyc.eshachem.com\/program\/%e4%bd%bf%e7%94%a8-ngrok-%e4%bd%bf%e4%b8%8d%e5%90%8c%e7%b6%b2%e8%b7%af%e7%9a%84%e4%ba%ba%e8%83%bd%e9%80%a3%e4%b8%8a%e4%bd%a0%e7%9a%84localhost\/"}],"views":74,"_links":{"self":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":3,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":271,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/posts\/99\/revisions\/271"}],"wp:attachment":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}