I am trying to create a browser plugin and using privoxy to bypass cross domain policy in browser which checks for Access-Control-Allow-Origin: * this header in server-response if it is present browser processes the request correctly.
I have a local application running on port 127.0.0.1:5050 and i wish to access this with privoxy and I want privoxy to add that header so that browser can process the request.My version edits the Server: header and should replace it with Access-Control-Allow-origin but ?
s|Server: .|Access-Control-Allow-Origin: |
Not working ?? I have added them to end of these files.
I also tried a simple version by chaning s/Server/Test/g in the server header it is also not getting replaced . Please tell me what's wrong that I am doing ? and what is the correct way to add an header in the reply or edit the Server: header to Access-Control-Allow-Origin.