Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-04161: ReferenceError: XMLHttpRequest is not defined for Execute Server-Side Code.

aleksander_siJul 12 2023

Is it possible to execute server side request in javascript using MLE?

I would like to try the following:

const request = new XMLHttpRequest();
request.open("GET", "http://localhost:8100/api/authors/getAuthor?uniqueId=5f65172d-bf01-4010-b021-90b488faf5cd", false); // `false` makes the request synchronous
request.send(null);

if (request.status === 200) {
console.log(request.responseText);
}

Comments
Post Details
Added on Jul 12 2023
1 comment
204 views