问题原因:跨域问题
解决方案:跨域添加:
novel: # 跨域配置 cors: # 允许跨域的域名 allow-origins: - http://localhost:1024 - http://localhost:8080 - http://127.0.0.1:1024 **关键 注意: 【 - http://127.0.0.1:1024 】 != 【 - http://localhost:1024 】
问题原因:跨域问题
解决方案:跨域添加:
novel: # 跨域配置 cors: # 允许跨域的域名 allow-origins: - http://localhost:1024 - http://localhost:8080 - http://127.0.0.1:1024 **关键 注意: 【 - http://127.0.0.1:1024 】 != 【 - http://localhost:1024 】