webpack-dev-server proxy doesnt work

تعرفه تبلیغات در سایت
عنوان عکس عنوان عکس عنوان عکس عنوان عکس
عنوان عکس عنوان عکس عنوان عکس عنوان عکس
عنوان عکس عنوان عکس عنوان عکس عنوان عکس
عنوان عکس عنوان عکس عنوان عکس عنوان عکس
عنوان عکس عنوان عکس عنوان عکس عنوان عکس

آرشیو مطالب

جستجوگر

یافته ها در جستجو

    امکانات وب

    برچسب ها

    Vote count: 0

    Here is the part of my webpack config:

    devServer: {
    port: 4200,
    historyApiFallback: true,
    proxy: {
      "/file/**": {
        "target": proxyFileUri,
        "changeOrigin": true,
        "pathRewrite": {"^/file" : ""},
        "secure": false
      },
      "/api/**": {
        "target": proxyApiUri,
        "changeOrigin": true,
        "secure": false
      }
    }
    

    },

    While trying to proxy all requests by webpack-dev-serv somthing went wrong. What is the problem? I can not understand why the proxy does not work on the key "/file", path doesnt rewrite, i can't find a solution. Could the problem be that I'm sending a request with "Content-type : multipart form data"?

    asked 9 secs ago

  • مطالب مرتبط
  • I am trying to make a if statement where it looks if the Edittext(number) is bigger then the int value. Doesnt Work
  • Using ES6 Proxy results in any function call "is not a function"
  • I am not able to fetch a proxy to struts action in JUnit test case using StrutsTestCase
  • PHP CURL Proxy "curl -x" VS "sudo http_proxy=... curl"
  • How to use Flexboxes on my unusual lightbox gallery that doesnt work also (laterally offset)??
  • How to set proxy for my application through Settings/Option/Preferences forms?
  • نویسنده : استخدام کار بازدید : 67 تاريخ : جمعه 29 ارديبهشت 1396 ساعت: 16:41
    برچسب‌ها :