<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>grunt-connect-proxy on HiMySQL - leopku 润物细无声</title>
    <link>https://himysql.now.sh/tags/grunt-connect-proxy/</link>
    <description>Recent content in grunt-connect-proxy on HiMySQL - leopku 润物细无声</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Tue, 29 Jul 2014 00:10:14 +0000</lastBuildDate>
    
	<atom:link href="https://himysql.now.sh/tags/grunt-connect-proxy/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>前端开发之 API 跨域请求代理插件 grunt-connect-proxy 配置 （基于0.1.10版）</title>
      <link>https://himysql.now.sh/post/grunt-connect-proxy-configure/</link>
      <pubDate>Tue, 29 Jul 2014 00:10:14 +0000</pubDate>
      
      <guid>https://himysql.now.sh/post/grunt-connect-proxy-configure/</guid>
      <description>&lt;h1 id=&#34;grunt-connect-proxy&#34;&gt;Grunt-connect-proxy&lt;/h1&gt;

&lt;p&gt;最近的前端项目均基于 yoeman 搭建。yeoman 基于 grunt ，默认启动 9000 端口的 WEB 服务，开发起来非常方便。&lt;/p&gt;

&lt;p&gt;不过，我们的后端项目监听在 3000 端口。在向后端请求时，出报跨域的错误。&lt;/p&gt;

&lt;p&gt;幸好，找到了 grunt-connect-proxy 用于代理 API 跨域请求。&lt;/p&gt;

&lt;p&gt;不过，网上好多资料看上去都是基于旧版本的。本文写作时 grunt-connect-proxy 最新版为 0.1.10，网上的配置要么太复杂要么不能正常工作。&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>