[QUESTION] proxy a client request to the nuxt server ?
See original GitHub issueHello 👋
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:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you very much for your feedback @tiretdusix and sorry to hear that @nuxtjs/proxy did not work for your use case.
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.