I am using CKEditor. when I submit post normally like this in textarea.
This is working and also submit record to database.
This is testing
https://twitter.com/Maryamsharif111/status/1573563545161187328
CkEditor source something like this.
<p>
This is testing
</p>
<figure class="media">
<oembed url="https://twitter.com/Maryamsharif111/status/1573563545161187328"></oembed>
</figure>
and when I used CKEditor HTMLembed for posting twitter embed this is not working on website.
Showing Error: 403 Forbidden Access to this resource on the server is denied!
but this is working on localhost wampserver
CKEditor source with HTMLembed something like this.
<p>
This is testing
</p>
<div class="raw-html-embed">
<blockquote class="twitter-tweet">
<p lang="en" dir="ltr">
Reached NY a few hours ago to tell Pakistan's story to the world, a story of deep anguish & pain arising out of a massive human tragedy caused by floods. In my address at UNGA & bilateral meetings, I will present Pakistan's case on issues that call for world's immediate attention
</p>
— Shehbaz Sharif (@CMShehbaz) <a href="https://twitter.com/CMShehbaz/status/1572099146051616770?ref_src=twsrc%5Etfw">September 20, 2022</a>
</blockquote>
<script async="" src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
I don't attaché any file or image.
my PHP code is very simple to add record in database.
if (isset($_POST['addpost'])) {
$title = $_POST['title'];
$detail = $_POST['detail'];
create_post($conn, $title, $detail);
header('location: index.php?Add=NewPost&ID=' . $last_id);
exit();
Please tell me how I can solved this issue. Thanks