The 'Access-Control-Allow-Origin' header has a value that is not equal to the supplied origin error

前端 未结 1 716
自闭症患者
自闭症患者 2021-01-28 20:50

I get this error:

Access to XMLHttpRequest at \'http://127.0.0.1:8000/api/user\' from origin \'http://localhost:8080\' has been blocked by CORS policy: T

相关标签:
1条回答
  • 2021-01-28 21:31

    I am not sure But maybe chorme does not support localhost

    Try wildcard * Instead of http://localhost:8080/*

    0 讨论(0)
提交回复
热议问题