/mxdcnt

Primary LanguageJavaScript

Have you ever come across the problem of calling non-secure resources from secure servers?

Join the chat at https://gitter.im/mxdcnt/community

For example

  • loading your own resources in github pages...
  • Calling non secure web API endpoints from Codepen...

Then this might help you... MixedCnt is an app that acts as a proxy for your API calls to non-secure servers. You can make both GET and POST requests thru the app...

To make a **GET ** request, the end point is

https://mixedcnt.herokuapp.com/get?url=

(append your URL)

For example, this image is served via HTTP.

demo.png

It is available thru the app via https://mixedcnt.herokuapp.com/get?url=http://35.200.245.209/uploads/demo.png-1562509410103.key_mixedCnt.des_.png

For **POST **requests the endpoint is

https://mixedcnt.herokuapp.com/post

In the body of the request, supply the target URL as url:

Example from jQuery ajax

$.ajax({
            url: 'https://mixedcnt.herokuapp.com/post',
            method: 'POST',
            data: {
                      url:'http://yourNonSecureURL.com',
                      otherdata: 'your other data to be sent'
                     },
            success: function (data) {
                      console.log(data)
                    }
        });