Code Monkey home page Code Monkey logo

cors-proxy's Introduction

CORS Proxy

Home page: https://cors-test-srv.appspot.com/

Endpoint: https://cors-test-srv.appspot.com/cors

What is it ?

CORS Proxy is a simple tool that can be use to proxify HTTP GET requests into CORS GET, POST or PUT requests. This tool is not made form prodution, its' goal is to visualise the "preflight" request call made before a CORS request made with PUT.

How to use it ?

Since the goal is to see the "preflight" request call made before a CORS, the request must be made from another "Origin" than the server one. I use the web site http://www.test-cors.org. This site is made for this.

Using GET method:

http://www.test-cors.org/#?client_method=GET&client_credentials=false&server_url=https%3A%2F%2Fcors-test-srv.appspot.com%2Fcors%3Ftarget%3Dhttps%3A%2F%2Fwww.metaweather.com%2Fapi%2Flocation%2F615702%2F&server_enable=true&server_status=200&server_credentials=false&server_tabs=remote

Using POST method:

http://www.test-cors.org/#?client_method=POST&client_credentials=false&client_headers=Content-Type%3A%20application%2Fx-www-form-urlencoded&client_postdata=target%3Dhttps%3A%2F%2Fwww.metaweather.com%2Fapi%2Flocation%2F615702%2F&server_url=https%3A%2F%2Fcors-test-srv.appspot.com%2Fcors&server_enable=true&server_status=200&server_credentials=false&server_tabs=remote

Using PUT method (now you will seen the preflight OPTIONS request):

http://www.test-cors.org/#?client_method=PUT&client_credentials=false&client_postdata=%7B%22target%22%3A%22https%3A%2F%2Fwww.metaweather.com%2Fapi%2Flocation%2F615702%2F%22%7D%0A&server_url=https%3A%2F%2Fcors-test-srv.appspot.com%2Fcors&server_enable=true&server_status=200&server_credentials=false&server_tabs=remote&client_headers=content-type%3A%20application%2Fjson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.