I'm writing a Chrome extension. If you make jQuery.ajax request for a regular http page from within a page served via https, then the request is blocked by Chrome. I was wondering if I could fetch the requested page using a secure proxy.
So, is it possible to use a generic proxy server for some jQuery.ajax request? If so, how? Note, changing the proxy setting of the browser is not an option.
Yes, it is.
What we did at work was implement a proxy that does exactly that:
This way you can both comply with the same origin policy and work with other origins. However, you will always need a server-side proxy functionality.