Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ivanjosipovic/corsproxy

A simple Proxy server which fully bypasses CORS and allow the browser to query any API.
https://github.com/ivanjosipovic/corsproxy

bypass cors cors-proxy proxy

Last synced: 3 months ago
JSON representation

A simple Proxy server which fully bypasses CORS and allow the browser to query any API.

Awesome Lists containing this project

README

        

## What is this?
This is a simple Proxy server which fully bypasses [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) and allow the browser to query any API.

## Why did I make this?
I found many CORS proxies, however, they simply added “Access-Control-Allow-Origin” to all requests. They did not respond to the CORS preflight requests. Without this, the API calls would fail.

## How does it work?

- Responds to [CORS preflight requests](https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request)
1. Default header values (configurable)
- Access-Control-Allow-Origin = *
- Access-Control-Allow-Method = *
- Access-Control-Allow-Headers = *
- Access-Control-Max-Age = 86400
2. Adds “Access-Control-Allow-Origin” to all responses