{"id":21605865,"url":"https://github.com/maximoospital/download-proxy","last_synced_at":"2025-10-07T02:12:04.709Z","repository":{"id":229963336,"uuid":"745694115","full_name":"maximoospital/download-proxy","owner":"maximoospital","description":"Demo for using a NuxtJS server as a proxy to avoid CORS-related trouble when downloading files form an external server.","archived":false,"fork":false,"pushed_at":"2024-06-17T16:50:20.000Z","size":171,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T19:16:18.480Z","etag":null,"topics":["axios","cors","download","nuxtjs","nuxtjs-template","nuxtjs2","proxy","v2"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maximoospital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-19T22:19:46.000Z","updated_at":"2024-06-17T16:50:23.000Z","dependencies_parsed_at":"2024-03-27T05:29:45.210Z","dependency_job_id":"10aea15c-b0ff-4c7a-b97b-15a7d675d835","html_url":"https://github.com/maximoospital/download-proxy","commit_stats":null,"previous_names":["maximoospital/download-proxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximoospital%2Fdownload-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximoospital%2Fdownload-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximoospital%2Fdownload-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximoospital%2Fdownload-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximoospital","download_url":"https://codeload.github.com/maximoospital/download-proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244242730,"owners_count":20421928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios","cors","download","nuxtjs","nuxtjs-template","nuxtjs2","proxy","v2"],"created_at":"2024-11-24T20:17:54.096Z","updated_at":"2025-10-07T02:11:59.675Z","avatar_url":"https://github.com/maximoospital.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr/\u003e\n\u003cp align=\"center\"\u003e\n  \u003ch3 align=\"center\"\u003eNuxtJS v2 Download-Proxy\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    A simple way to avoid CORS trouble in your external downloads.\n    \u003cbr/\u003e\n    \u003cbr/\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n## Table Of Contents\n\n* [About the Project](#about-the-project)\n* [Built With](#built-with)\n* [Getting Started](#getting-started)\n  * [Prerequisites](#prerequisites)\n  * [Installation](#installation)\n* [Usage](#usage)\n* [Authors](#authors)\n* [Acknowledgements](#acknowledgements)\n\n## About The Project\n\n![Screen Shot](images/screenshot.png)\n\nThis is a solution to a (highly specific) problem i've had with NuxtJS v2, this being trying to get the server to serve me an external server's files as a download, while avoiding the CORS hijinks you'd run into with most solutions.\n\n## Built With\n\n\n\n* [NuxtJS v2](https://v2.nuxt.com/)\n* [@nuxtjs/axios](https://axios.nuxtjs.org/)\n\n## Getting Started\n\nIt's honestly pretty boilerplate stuff to get this demo working.\n\n### Prerequisites\n\nYou only need NPM, any other stuff you might need you can get it through npm install.\n\n### Installation\n\n1. Clone the repo\n\n```sh\ngit clone https://github.com/maximoospital/download-proxy.git\n```\n\n2. Install NPM packages\n\n```sh\nnpm install\n```\n\n3. Run it. \n\n```sh\nnpm run dev\n```\n\n## Usage\n\nThe way this works is pretty simple actually, the path /downloadImage is now assigned to the server middleware script ~/server-middleware/downloadImage.js, the way you can utilize this is by calling the path itself as /downloadImage/?url=\"YOUR LINK HERE\" (without the \nquotation marks). Keep in mind, the way this avoids CORS is by proxying traffic itself through the NodeJS server, so it is meant for either light files like images or light traffic, it does cleanup after download.\n\n## Authors\n\n* **Maximo Ospital** - *Junior Developer and CS Student* - [Maximo Ospital](https://github.com/maximoospital/) - *i made this lol*\n\n## Acknowledgements\n\n* [ShaanCoding for this awesome Readme's generator](https://github.com/ShaanCoding/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximoospital%2Fdownload-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximoospital%2Fdownload-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximoospital%2Fdownload-proxy/lists"}