Ok, we're running in standalone mode using ORDS, not APEX.
I got the Table REST enabled and I can delete and get, BUT, the insert (i.e. post) doesn't work. I get a CORS error.
Access to XMLHttpRequest at 'http://dbmachine:9090/ords/trex/heroes' from origin 'http://localhost:9075' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
The Angular command that causes this is:
Const httpOptions = {
headers: new HttpHeaders({'Content-Type': 'application/json', 'accept': 'application/json' , 'Access-Control-Allow-Origin': '*'})
this.http.post<Hero>(this.heroesUrl, hero, httpOptions).subscribe();
I believe I have to change some settings in the Jetty Server running in the DB, but how do I do this?