I have the following problem. I have this link to instagram. Now I want to embed this as img tag on my website. But it is thrown the following error and the image is not timed. I have already searched many solutions. For example, I have enabled Access-Control-Allow-Origin in the .htaccess or the same in the server settings of Apache2. Also in php I have already added this. But it never worked. Does anyone have an idea and can help me
link:
https://scontent-frx5-1.cdninstagram.com/v/t51.2885-15/305801021_363676059182915_7679375915906926758_n.jpg?stp=dst-jpg_e35_s1080x1080&_nc_ht=scontent-frx5-1.cdninstagram.com&_nc_cat=111&_nc_ohc=wcS26j1GN2IAX-UV7xx&edm=APU89FABAAAA&ccb=7-5&oh=00_AT-iqWp4772LVH8vd3XPTiv-NxkkWYchexgeZ7Nzgb8VVQ&oe=6325804B&_nc_sid=86f79a
error:
Access to image at 'https://scontent-frx5-1.cdninstagram.com/v/t51.2885-15/305801021_363676059182915_7679375915906926758_n.jpg?stp=dst-jpg_e35_s1080x1080&_nc_ht=scontent-frx5-1.cdninstagram.com&_nc_cat=111&_nc_ohc=wcS26j1GN2IAX-UV7xx&edm=APU89FABAAAA&ccb=7-5&oh=00_AT-iqWp4772LVH8vd3XPTiv-NxkkWYchexgeZ7Nzgb8VVQ&oe=6325804B&_nc_sid=86f79a' from origin 'my server domain' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
html code:
<img crossorigin="" class="card-img w-100 d-block fit-cover" style="height: 300px;width: auto;" src="https://scontent-frx5-1.cdninstagram.com/v/t51.2885-15/305801021_363676059182915_7679375915906926758_n.jpg?stp=dst-jpg_e35_s1080x1080&_nc_ht=scontent-frx5-1.cdninstagram.com&_nc_cat=111&_nc_ohc=wcS26j1GN2IAX-UV7xx&edm=APU89FABAAAA&ccb=7-5&oh=00_AT-iqWp4772LVH8vd3XPTiv-NxkkWYchexgeZ7Nzgb8VVQ&oe=6325804B&_nc_sid=86f79a" width="448" height="300">