提交代碼,有個跨域的問題,怎么解決?
Access to XMLHttpRequest at 'https://program.imooc.com/api/run' from origin 'http://idcbgp.cn' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Access to XMLHttpRequest at 'https://program.imooc.com/api/run' from origin 'http://idcbgp.cn' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
2022-05-17
舉報
2022-05-31
使用nginx進行反向代理,讓瀏覽器感覺是訪問同一個地址。