Hello,
I'm trying to reproduce the spteps in this tutorial:
https://www.microfocus.com/documentation/visual-cobol/vc80/VS2022/GUID-B2C3EDF6-A5E7-403C-AC9D-9413000E2139.html
But I'm recieving CORs error on trying to test the aplication.
Error on Inspector:
bookAJAXtest.html:1
Access to XMLHttpRequest at 'localhost:9003/.../Read' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I already make the changes on the last section of tutorial, and checking the services properties on the ES Adiministration, I have the following header configurations:
[response headers]
Access-Control-Allow-Credentials=false
Access-Control-Allow-Origin=*
#REST#CORS#APIHi Bortolin,
Which browser are you using to test this?
Has the CORS plug-in been installed and configured , if the browser requires it?
Hi Bortolin,
Which browser are you using to test this?
Has the CORS plug-in been installed and configured , if the browser requires it?
Hi Chris,
I was testing on Edge, and I found a plugin to disable CORs.
But, now the test aplication sends a new error:
POST localhost:9003/.../Next 404 (Not Found)
The server is active, and the services names are the same listed in the error message (/temppath/AccesBooks/1.0)
Hi Chris,
I was testing on Edge, and I found a plugin to disable CORs.
But, now the test aplication sends a new error:
POST localhost:9003/.../Next 404 (Not Found)
The server is active, and the services names are the same listed in the error message (/temppath/AccesBooks/1.0)
I have done this tutorial and it all works fine for me.
Is that a typo in the service name above or is it really /AccesBooks/1.0. The service name should be /AccessBooks/1.0 with 2 s's.
I have done this tutorial and it all works fine for me.
Is that a typo in the service name above or is it really /AccesBooks/1.0. The service name should be /AccessBooks/1.0 with 2 s's.
Chris, you're right!
I make a mistake when creating the name of Service Interface.
Thank You !