front-end is served from http://localhost:3000/
I want to access the JSON data which is inside a directory's file
by sending HTTP requests at same-origin http://localhost:3000/
in React.js
is it possible to do that, if it is so, how?
Yes, you have 2 solutions:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.