Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhijithvijayan/serve-no-cors
Serve JavaScript from your local machine to the internet without CORS disturbing your inner peace.
https://github.com/abhijithvijayan/serve-no-cors
cors javascript serve
Last synced: 20 days ago
JSON representation
Serve JavaScript from your local machine to the internet without CORS disturbing your inner peace.
- Host: GitHub
- URL: https://github.com/abhijithvijayan/serve-no-cors
- Owner: abhijithvijayan
- License: mit
- Created: 2023-01-22T08:53:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T09:29:30.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T20:32:19.489Z (about 1 month ago)
- Topics: cors, javascript, serve
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
serve-no-cors
Serve JavaScript from your local machine to the internet without CORS disturbing your inner peace.
🙋♂️ Made by @abhijithvijayan
❤️ it? ⭐️ it on [GitHub](https://github.com/abhijithvijayan/serve-no-cors/stargazers) or [Tweet](https://twitter.com/intent/tweet?text=Check+out+serve-no-cors%21+by+%40_abhijithv%0D%0A%0D%0AServe+JavaScript+from+your+local+machine+to+the+internet+without+CORS+disturbing+your+inner+peace.%0D%0Ahttps%3A%2F%2Fgithub.com%2Fabhijithvijayan%2Fserve-no-cors%0D%0A%0D%0A%23cors+%23serve+%23javascript+%23ngrok) about it.
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Issues](#issues)
- [🐛 Bugs](#-bugs)
- [LICENSE](#license)## Installation
[Download and setup ngrok](https://ngrok.com/download)
Ensure you have [Node.js](https://nodejs.org) 10 or later installed. Then run the following:
```
# via npm
npm install --global serve
```## Usage
```bash
# Get this serve config file
curl -fsSL https://github.com/abhijithvijayan/serve-no-cors/archive/main.tar.gz | tar -xz --strip-components=1 serve-no-cors-main/serve.json# serve the current folder. refer: https://github.com/vercel/serve#readme
serve . -p 49241# generate a secure tunnel with ngrok. refer: https://ngrok.com/
ngrok http 49241
```Now use javascript files across web.
Sample Usage with an ngrok tunnel
```html```
## Issues
_Looking to contribute? Look for the [Good First Issue](https://github.com/abhijithvijayan/serve-no-cors/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22)
label._### 🐛 Bugs
Please file an issue [here](https://github.com/abhijithvijayan/serve-no-cors/issues/new) for bugs, missing documentation, or unexpected behavior.
[**See Bugs**](https://github.com/abhijithvijayan/serve-no-cors/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3A+bug%22)
## License
MIT © [Abhijith Vijayan](https://abhijithvijayan.in)