简体   繁体   中英

Is there a proxy server alternative that works on local IP addresses for getting around CORS?

I have had success getting around CORS for AJAX requests to public IP addresses through the use of proxy servers: effectively making the request from the server and returning the response with different headers. Is there something similar that would work on local IP addresses from a server hosted off-site? I do not have access to modify any of the code on this local IP.

You can't proxy data from a computer you can't make a connection to.

If both computers were on the same network (eg via a VPN) then this would work in exactly the same way.

如果有帮助,您可以在浏览器中禁用CORS,或使用扩展名添加CORS标头

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM