NuxtN
Nuxt14mo ago
Moritz

html from api

Hello,
I need to load an HTML from the API and display it directly.
I now have a kind of solution, but it does not work properly because this API does not require authentication.
What is the best way to do this?

'/my/ticket/**': {
      appMiddleware: 'auth',
      proxy: {
        to: process.env.API_URL + '/api/tickets/**',
        headers: {
          'Authorization': 'Bearer X'
        }
      }
    },
Was this page helpful?