hello I have two websites one creates a page and the other is a drupal website where there is an iframe I want to send the iframe URL after the page creation I am working with Axios and express js
here is my code :
router.post("/publish", (req, res) => {
axios.defaults.baseURL = "https://dev-testingdrupalmodule.pantheonsite.io";
axios
.post("/node/1", {
frameurl: "http://localhost:8000/" + req.body.publish_name + ".html",
})
.then(function (response) {
res.send(response.data);
})
.catch(function (error) {
console.log(error);
});
});
my problem is the HTML received in the response is not shown properly after I do my post request with Axios i would like to go to my drupal website and see the iframe with the new URL