A powerful and user-friendly web application for testing CORS (Cross-Origin Resource Sharing) configurations and API endpoints. This tool helps developers validate CORS settings, test API responses, and debug cross-origin issues with ease.
-
Clone the repository:
git clone https://github.com/Toowan0x1/CORSer cd CORSer
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to:
http://localhost:5173
-
Clone the repository:
git clone https://github.com/Toowan0x1/CORSer cd CORSer
-
Build the Docker image:
docker build -t CORSer .
-
Run the container:
docker run -p 5173:5173 CORSer
-
Access the tool:
http://localhost:5173
- Enter the target URL in the URL input field
- Select the HTTP method (GET, POST, PUT, DELETE)
- Add any required headers using the "Add Header" button
- Click "Send Request" to make the API call
The response section displays:
- Response time with performance indicators
- CORS configuration status
- HTTP status code
- Response headers with copy functionality
- Formatted response body with copy functionality
- Custom Headers: Add headers like Authorization, Content-Type, etc.
- HTTP Method Selection: Choose from GET, POST, PUT, DELETE, and more.
- Query Parameters Support: Append dynamic query parameters to requests.
- CORS Header Inspection: Analyze Access-Control-Allow-Origin, Access-Control-Allow-Methods, and Access-Control-Allow-Headers.
- Preflight Request Testing: Simulate OPTIONS requests to check preflight responses.
- Error Explanation: Provide insights into common CORS issues (e.g., missing headers, mismatched origins).
- Response Display: View response headers, status codes, and body in a structured format.
- History Log: Save recent tests for quick re-testing and reference.
- Clean & Intuitive Design: Easy-to-use interface for testing API requests.
- Flexible Layout Options:
- Horizontal View: Side-by-side request and response display.
- Vertical View: Stacked layout with request on top and response below.