<h2 id="背景"><a href="/go.html?url=#背景" class="headerlink" title="背景"></a>背景</h2><p>之前有一个项目使用<code>Zepto</code>来发送<code>ajax</code>请求, 查看<code>Nginx</code>日志或使用<code>Chrome Dev Tools</code>查看请求发送情况时, 会看到每次调后台API的请求之前, 都会发送一个OPTIONS请求, 无论API要求请求的方法是GET或POST. </p>
<h2 id="背景"><a href="/go.html?ur