Using react-admin
at front-end to access gin developed API back-end.
- Front-end: http://localhost:3000
- Back-end: http://localhost:8080
When access URL from Chrome browser:
http://localhost:3000/#/posts
Got this message from Chrome Console:
fetch.js:41 OPTIONS http://localhost:8080/posts?_end=10&_order=DESC&_sort=id&_start=0 403 (Forbidden)
But if access the URI above from browser, it can return JSON result.
From the gin developed API output, got this message:
[GIN] 2018/06/13 - 16:38:16 | 403 | 1.995µs | ::1 | OPTIONS /posts?_end=10&_order=DESC&_sort=id&_start=0