Request doesn't pass access control check: No 'Access-Control-Allow-Origin'

前端 未结 2 1387
遥遥无期
遥遥无期 2021-01-22 01:23

I am just trying to use mocky.io from my http://localhost:8080

But getting this error:

XMLHttpRequest cannot load http:/

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-22 01:41

    It is looks like you are trying to access to other domain. Maybe add this in the web.config?

          
    

提交回复
热议问题