Local RestJS didn't go much further after I tried to modualize OO design; browser blocks local request:
Maybe I can tried to use URL requests to mimic the file structure of a general server, but, under asynchronous structure, NodeJS may not process loading files in the same order of usage.
Furthermore, when I implemented OO design, it is about the same structure tutorial provided: noteJS, html frame(public/html), main process (src/index.js), and classes(src/module files)
Alright..... I surrender. Move back to NodeJS-ReactJS single page app.
"Cross origin requests are only supported for protocol schemes: http, data, chrome"
CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome- extension, https.
Then I tried to launch NodeJS service to solve this problem, NodeJS treated all local included files as server main page.Maybe I can tried to use URL requests to mimic the file structure of a general server, but, under asynchronous structure, NodeJS may not process loading files in the same order of usage.
Furthermore, when I implemented OO design, it is about the same structure tutorial provided: noteJS, html frame(public/html), main process (src/index.js), and classes(src/module files)
Alright..... I surrender. Move back to NodeJS-ReactJS single page app.
Comments
Post a Comment