Skip to content Skip to sidebar Skip to footer

How To Use Json Proxy To Access Remote Services During Development

This is my doubt after going through How to send headers while using jsonp proxy? and How Ajax call is working in mobile app (PhoneGap), but not in PC browser? As per this we can

Solution 1:

I think for the development purpose you can disable cross domain policy in your browser as given here.

  1. create a short cut for the chrome browser in you desktop
  2. add the following flag to the short cut --disable-web-security

Or

You can setup your dev server to allow cross domain requests as given here or [here]

1. Add the following header to your response Access-Control-Allow-Origin: *

Post a Comment for "How To Use Json Proxy To Access Remote Services During Development"