Trouble-shooting CORS in Play Framework 2.4.x

前端 未结 7 686
没有蜡笔的小新
没有蜡笔的小新 2020-12-10 14:55

I have a java play framework 2.4.x web app providing a JSON/HTTP API. When I run my front-end HTML/JS file:///Users/nize/tmp/index.html calling the API on

相关标签:
7条回答
  • 2020-12-10 15:57

    Does it work in Firefox? Chrome has some restrictions on running Ajax from local files, e.g., see this link. If it is Chrome-specific, you can start up Chrome with a command-line switch to remove the restriction.

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