search

Home  >  Q&A  >  body text

javaweb项目为什么要把localhost拦截,必须要127.0.0.1访问?

有什么不同吗?为什么要拦截localhost

阿神阿神2813 days ago583

reply all(3)I'll reply

  • 黄舟

    黄舟2017-04-18 10:57:59

    127.0.0.1 is the loopback address, referring to the local machine.

    The reason why you can use localhost to access the local area is that the localhost domain name is pointed to 127.0.0.1 in the system's host file, so please check whether the system host file configuration is correct.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-18 10:57:59

    This situation occurs when Ajax cross-domain requests are made.

    reply
    0
  • 阿神

    阿神2017-04-18 10:57:59

    Because I can change the mapping of 127.0.0.1 in the host file to zhouxingchi

    reply
    0
  • Cancelreply