Answers for "nuxtjs http multiple proxy"

0

nuxtjs http multiple proxy

{
  proxy: {
    // Simple proxy
    '/api': 'http://example.com',

    // With options
    '/api2': { target: 'http://example.com', ws: false },

    // Proxy to backend unix socket
    '/api3': {
      changeOrigin: false,
      target: { socketPath: '/var/run/http-sockets/backend.sock' }
    }
  }
}
Posted by: Guest on September-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language