i been stuck here for 3 days. They never tell whether this is supposed to be a live deployment on an apache server, or if running from the IDE is sufficient. In the video he runs it from just the IDE but that doesn’t work
Access to XMLHttpRequest at ‘https://api.backendless.com///services/CodelessShoppingCartService/addItem’ from origin ‘http://localhost:63342’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
VM6:1 POST https://api.backendless.com///services/CodelessShoppingCartService/addItem net::ERR_FAILED
(anonymous) @ VM6:1
(anonymous) @ backendless.min.js:15
v @ backendless.min.js:15
b.send @ backendless.min.js:15
value @ backendless.min.js:15
value @ backendless.min.js:15
backendless.min.js:15 Uncaught (in promise) Error: Network Error
at XMLHttpRequest.i.onerror (backendless.min.js:15)
i.onerror @ backendless.min.js:15
Promise.then (async)
addItem @ controller.js:10
(anonymous) @ VM39:1
index.html:1 Access to XMLHttpRequest at ‘https://api.backendless.com///services/CodelessShoppingCartService/getItems’ from origin ‘http://localhost:63342’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
VM6:1 POST https://api.backendless.com///services/CodelessShoppingCartService/getItems net::ERR_FAILED
(anonymous) @ VM6:1
(anonymous) @ backendless.min.js:15
v @ backendless.min.js:15
b.send @ backendless.min.js:15
value @ backendless.min.js:15
value @ backendless.min.js:15
backendless.min.js:15 Uncaught (in promise) Error: Network Error
at XMLHttpRequest.i.onerror (backendless.min.js:15)
i.onerror @ backendless.min.js:15
Promise.then (async)
getItems @ controller.js:17
(anonymous) @ VM40:1
index.html:1 Access to XMLHttpRequest at ‘https://api.backendless.com///services/CodelessShoppingCartService/purchase’ from origin ‘http://localhost:63342’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
VM6:1 POST https://api.backendless.com///services/CodelessShoppingCartService/purchase net::ERR_FAILED
(anonymous) @ VM6:1
(anonymous) @ backendless.min.js:15
v @ backendless.min.js:15
b.send @ backendless.min.js:15
value @ backendless.min.js:15
value @ backendless.min.js:15
backendless.min.js:15 Uncaught (in promise) Error: Network Error
at XMLHttpRequest.i.onerror (backendless.min.js:15