nisamudeen97
Regular Pleskian
Hi,
I was using plesk 12.1 and cors headers were working fine on websites as expected. I used the doc https://www.maxcdn.com/one/tutorial/how-to-use-cdn-with-webfonts/ to enable it. Nginx is listening on port 80.
Unfortunately I have updated plesk to 12.5 suddenly cors headers stopped working. We have checked the server side logs meanwhile we are unable to find any clues. we have done curl testing as explained in the reference doc, we can see the "access control headers" being returning fine meanwhile webfonts were not working as expected.
I have contacted cdn support they have updated " Plesk is preventing CORS headers from reaching external servers I see that they are available on your origin server, We have verified with numerous clients before that Plesk is conflicting with CORS headers for some reason and the additional code has to be applied on the origin server before it can reach our CDN"
What you can do is log into Plesk control panel and go to Websites & Domains -> your web site
And you will find the text field called Additional nginx directives or similar. You will need to paste the nginx code for web fonts into it and save the change. And then purge the cache on the pull zone, as well as your web browser cache.And CORS headers will then be applied to the files in the cache on our end
I have done all the above steps meanwhile cors headers are not working now. I am unsure if this is an expected behavior with 12.5
I was using plesk 12.1 and cors headers were working fine on websites as expected. I used the doc https://www.maxcdn.com/one/tutorial/how-to-use-cdn-with-webfonts/ to enable it. Nginx is listening on port 80.
Unfortunately I have updated plesk to 12.5 suddenly cors headers stopped working. We have checked the server side logs meanwhile we are unable to find any clues. we have done curl testing as explained in the reference doc, we can see the "access control headers" being returning fine meanwhile webfonts were not working as expected.
I have contacted cdn support they have updated " Plesk is preventing CORS headers from reaching external servers I see that they are available on your origin server, We have verified with numerous clients before that Plesk is conflicting with CORS headers for some reason and the additional code has to be applied on the origin server before it can reach our CDN"
What you can do is log into Plesk control panel and go to Websites & Domains -> your web site
And you will find the text field called Additional nginx directives or similar. You will need to paste the nginx code for web fonts into it and save the change. And then purge the cache on the pull zone, as well as your web browser cache.And CORS headers will then be applied to the files in the cache on our end
I have done all the above steps meanwhile cors headers are not working now. I am unsure if this is an expected behavior with 12.5