question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[QUESTION] proxy a client request to the nuxt server ?

See original GitHub issue

Hello 👋

I have a simple stupid question, I’m trying to lazy-load a RSS feed in a Nuxt.js app ( when intersecting an observer ).

The RSS is not hosted on a domain i own, and as it was kind of expected i hit the CORS wall.

I would like to know if nuxt-community / proxy-module can help me proxy the query to my Nuxt server instead ? ( but still trigger from the client, not at server render time )

+-------------+ +----> +------------+
| NUXT SERVER |        |  RSS FEED  |
+-------------+ <----+ +------------+

     +   ^
     |   |
     v   +

+-------------+
| NUXT CLIENT |
+-------------+

I read some people use express alongside Nuxt for this sort of things ?

Thanks ! Good day ! ✨🏔

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Atinuxcommented, Feb 1, 2021

Thank you very much for your feedback @tiretdusix and sorry to hear that @nuxtjs/proxy did not work for your use case.

1reaction
Atinuxcommented, Jan 29, 2021

This is the purpose of the proxy module @tiretdusix, to go through the Nuxt server to hit the origin API and avoid CORS in the client-side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to send a request from Nuxt.js client over Nuxt.js server ...
The request over proxy can look like this: ... Select Express as the project's server-side framework, when creating the new Nuxt.js app.
Read more >
How to enable SSL Proxy only on certain Locations in Apache
I am trying to use Apache as reverse proxy. For some locations I want to convert the client's HTTPS request to HTTP requests...
Read more >
Options - nuxtjs/axios
Discover the available options to configure Axios in Nuxt. ... the base URL which is used and prepended to make server side requests....
Read more >
Unusual Nuxt.js Setup - Medium
To depict, given you are requesting your Nuxt's page from url: https://host/proxy-path/nuxt-path/ and your nuxt server sits on the container ...
Read more >
Tracking Nuxt.js apps - Docs - PostHog
If you are using Nuxt.js and want to track your application using ... we need to activate it on the client side in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found