Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.83 KB

CONTRIBUTING.md

File metadata and controls

57 lines (38 loc) · 1.83 KB

Contributing Guidelines

Pull requests, bug reports, and all other forms of contribution are welcomed and highly encouraged! :octocat:

This guide serves to set clear expectations for everyone involved with the project so that we can improve it together while also creating a welcoming space for everyone to participate. Following these guidelines will help ensure a positive experience for contributors and maintainers.

Contents

📚 Install

Before you start contributing you must clone and installing this project on your local machine.

Prerequisite: you must install rust v1.56+ and node v20+ on your machine first

  1. Clone the project
# using ssh
git clone [email protected]:oxwazz/cors_bypass.git
# or using https
git clone https://github.com/oxwazz/cors_bypass.git
  1. Open and run
# opening project
cd cors_bypass
# run
npx wrangler dev

done 🎉

🧵 How it works

This code is deployed on Cloudflare worker. The entire script is on lib.rs. This service acts as a flexible and efficient HTTP proxy that processes user-defined requests. It allows users to specify various HTTP parameters such as request headers, methods (GET, POST, PUT, DELETE, etc.), body content, and the target URL. The proxy forwards the request exactly as defined by the user, retrieves the response from the target server, and returns it with additional headers to ensure it is CORS-compliant.

🔧 Tools

While working this project I'm usually using this tools, like:

  1. https://jsonplaceholder.typicode.com - dummy API
  2. https://ngrok.com/ - expose local server