CORS policy error
-
Hello,
I’m experiencing errors on every instagram photo :
Access to XMLHttpRequest at ‘https://scontent-lhr3-1.cdninstagram.com/vp/8f8133efb40c0d2f5ecbd2a507e1eb34/5C9550CE/t51.2885-15/sh0.08/e35/c0.135.1080.1080/s640x640/[email protected]’ from origin ‘https://ladinettedesgrandes.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
I tried to add some code as suggested in another post in functions.php of the child theme
add_filter(‘null_instagram_cache_time’, ‘my_cache_time’);
function my_cache_time() {
return HOUR_IN_SECONDS/2;
}But it does not fix the error.
Could you plese help me here?
Thanks in advance
- The topic ‘CORS policy error’ is closed to new replies.