久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <legend id='tbOuF'><style id='tbOuF'><dir id='tbOuF'><q id='tbOuF'></q></dir></style></legend>

      <small id='tbOuF'></small><noframes id='tbOuF'>

      <tfoot id='tbOuF'></tfoot>

          <bdo id='tbOuF'></bdo><ul id='tbOuF'></ul>
        <i id='tbOuF'><tr id='tbOuF'><dt id='tbOuF'><q id='tbOuF'><span id='tbOuF'><b id='tbOuF'><form id='tbOuF'><ins id='tbOuF'></ins><ul id='tbOuF'></ul><sub id='tbOuF'></sub></form><legend id='tbOuF'></legend><bdo id='tbOuF'><pre id='tbOuF'><center id='tbOuF'></center></pre></bdo></b><th id='tbOuF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tbOuF'><tfoot id='tbOuF'></tfoot><dl id='tbOuF'><fieldset id='tbOuF'></fieldset></dl></div>

      1. Node js/Angular js - 注意:顯示臨時標題

        Node js / Angular js - CAUTION: Provisional headers are shown(Node js/Angular js - 注意:顯示臨時標題)
        • <small id='kPUlY'></small><noframes id='kPUlY'>

            <tfoot id='kPUlY'></tfoot><legend id='kPUlY'><style id='kPUlY'><dir id='kPUlY'><q id='kPUlY'></q></dir></style></legend>
              • <i id='kPUlY'><tr id='kPUlY'><dt id='kPUlY'><q id='kPUlY'><span id='kPUlY'><b id='kPUlY'><form id='kPUlY'><ins id='kPUlY'></ins><ul id='kPUlY'></ul><sub id='kPUlY'></sub></form><legend id='kPUlY'></legend><bdo id='kPUlY'><pre id='kPUlY'><center id='kPUlY'></center></pre></bdo></b><th id='kPUlY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='kPUlY'><tfoot id='kPUlY'></tfoot><dl id='kPUlY'><fieldset id='kPUlY'></fieldset></dl></div>
                • <bdo id='kPUlY'></bdo><ul id='kPUlY'></ul>

                    <tbody id='kPUlY'></tbody>
                  本文介紹了Node js/Angular js - 注意:顯示臨時標題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  這是我的 Angular js 代碼:

                  $http({
                                  method:'POST',
                                  withCredential:true,
                                  url:$scope.config.app_ws+'auth/signup',
                                  data:{user:$scope.auth}
                              }).success(function(status, response){
                  
                                  console.log(response);
                              }).error(function(status, response){
                                  alert(response+'Bummer :( , an error occured plese retry later. ');
                              });
                  

                  這是我的 Node.js 塊后端:

                   var allow_cross_domain= function(req, res, next) {
                        res.header('X-Powered-By', 'hey.heyssssssss.org');
                  
                        var oneof = false;
                        if(req.headers.origin) {
                          res.header('Access-Control-Allow-Origin', req.headers.origin);
                          oneof = true;
                        }
                        if(req.headers['access-control-request-method']) {
                          res.header('Access-Control-Allow-Methods', req.headers['access-control-request-method']);
                          oneof = true;
                        }
                        if(req.headers['access-control-request-headers']) {
                          res.header('Access-Control-Allow-Headers', req.headers['access-control-request-headers']);
                          oneof = true;
                        }
                        if(oneof) {
                          res.header('Access-Control-Max-Age', 60 * 60 * 24 * 365);
                        }
                      // intercept OPTIONS method
                      if (oneof && req.method == 'OPTIONS') {
                        res.send(200);
                      } else {
                        next();
                      }
                      }
                  
                      app.use(allow_cross_domain);
                  
                      app.post('/auth/signup', function (req, res) { res.send('wtff'); });
                  

                  我只是從 Angular 調用 POST localhost:3000/auth/signup 到 Node,但我得到 **CAUTION : 臨時標頭已顯示.** 在 chrome 控制臺中.

                  I'm just calling POST localhost:3000/auth/signup from Angular to Node, but i get **CAUTION : Provisional headers are shown.** in chrome console.

                  鉻(小心):

                  Firefox(大約 30/60 秒沒有響應,然后出現 alert() :/):

                  Firefox (NO RESPONSE for about 30/60 seconds and then the alert() comes up :/ ):

                  這可能是什么?

                  如果我使用 GET 一切正常,只是使用 POST 我會遇到麻煩,這怎么可能?

                  IF i use GET everything is ok, is just with POST that i get troubles how is that possible?

                  推薦答案

                  我個人在 angular 中使用了這個reset"方法:

                  personaly I use this "reset" method in angular:

                  app.config(['$httpProvider', function ($httpProvider) {
                    //Reset headers to avoid OPTIONS request (aka preflight)
                    $httpProvider.defaults.headers.common = {};
                    $httpProvider.defaults.headers.post = {};
                    $httpProvider.defaults.headers.put = {};
                    $httpProvider.defaults.headers.patch = {};
                  }]);
                  

                  這篇關于Node js/Angular js - 注意:顯示臨時標題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                • <i id='Zcjnu'><tr id='Zcjnu'><dt id='Zcjnu'><q id='Zcjnu'><span id='Zcjnu'><b id='Zcjnu'><form id='Zcjnu'><ins id='Zcjnu'></ins><ul id='Zcjnu'></ul><sub id='Zcjnu'></sub></form><legend id='Zcjnu'></legend><bdo id='Zcjnu'><pre id='Zcjnu'><center id='Zcjnu'></center></pre></bdo></b><th id='Zcjnu'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Zcjnu'><tfoot id='Zcjnu'></tfoot><dl id='Zcjnu'><fieldset id='Zcjnu'></fieldset></dl></div>
                    <bdo id='Zcjnu'></bdo><ul id='Zcjnu'></ul>

                      <tbody id='Zcjnu'></tbody>
                      <tfoot id='Zcjnu'></tfoot><legend id='Zcjnu'><style id='Zcjnu'><dir id='Zcjnu'><q id='Zcjnu'></q></dir></style></legend>

                          <small id='Zcjnu'></small><noframes id='Zcjnu'>

                            主站蜘蛛池模板: 人人干在线视频 | 久久久久久美女 | 欧美日韩在线观看一区 | 亚洲精品乱码久久久久久按摩观 | 国产免费一区二区 | 人人人人干| 亚洲人人 | 欧美成年人网站 | 欧美日韩在线一区二区 | 久久国产一区 | www.免费看片.com | 日韩午夜在线播放 | 国产福利二区 | 国产午夜精品视频 | 久久久久久久久国产成人免费 | 国产二区视频 | 欧美日韩在线一区二区三区 | 最新中文字幕在线 | 网页av| 亚洲精品一区二区二区 | 久久新视频 | 中文字幕第一页在线 | 亚洲精品电影在线观看 | 国产精品不卡 | 国产精品一区二区av | 9色网站 | 午夜免费成人 | 伊人二区 | 韩日在线观看视频 | 黄色片在线免费看 | 欧美性一区二区三区 | 亚洲成人在线免费 | www.av在线| 欧美成人a∨高清免费观看 老司机午夜性大片 | 99免费在线视频 | 欧美午夜影院 | 欧美福利在线 | 精品久久久久一区二区国产 | 亚洲欧美精品一区 | 亚洲视频在线观看 | av看片网站 |