We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Cannot Access Remote CSS files from VestaCP
-
- Posts: 38
- Joined: Tue Aug 16, 2016 4:58 pm
Cannot Access Remote CSS files from VestaCP
<r>Hello everyone, <br/>
<br/>
Recently came across similar issues related to <br/>
<URL url="viewtopic.php?t=10544"><LINK_TEXT text="viewtopic.php?t=10544">viewtopic.php?t=10544</LINK_TEXT></URL><br/>
<br/>
My issue is
<CODE><s></e></CODE>
How i am accessing the following css files via html.
<CODE><s></e></CODE>
and have tried using async
<CODE><s></e></CODE>
I have attempted the following.
<CODE><s></e></CODE>
in vesta nginx conf file for domain. <br/>
I have also attempted the same implementation for .htaccess file as well.<br/>
<br/>
However it does not work. <br/>
<br/>
I will also state,
<CODE><s></e></CODE>
Works just fine however, it is a javascript file. <br/>
<br/>
Ideally website.com is hosted on the primary vestacp server. <br/>
and website-cdn.com is hosted on a separate vestacp server at a different location.<br/>
<br/>
<br/>
What is causing the issue for CORS error code only on css files? Why would this be working for .js files and not CSS? would this be a vesta bug?</r>
<br/>
Recently came across similar issues related to <br/>
<URL url="viewtopic.php?t=10544"><LINK_TEXT text="viewtopic.php?t=10544">viewtopic.php?t=10544</LINK_TEXT></URL><br/>
<br/>
My issue is
<CODE><s>
Code: Select all
</s>Access to imported resource at 'https://website-cdn.com/css/fontawesome-all.min.css' from origin 'https://website.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.<e>
How i am accessing the following css files via html.
<CODE><s>
Code: Select all
</s><link rel="import" href="https://website-cdn.com/css/fontawesome-all.min.css"><e>
and have tried using async
<CODE><s>
Code: Select all
</s><link rel="import" href="https://website-cdn.com/css/fontawesome-all.min.css" async><e>
I have attempted the following.
<CODE><s>
Code: Select all
</s>add_header Access-Control-Allow-Origin "*";<e>
in vesta nginx conf file for domain. <br/>
I have also attempted the same implementation for .htaccess file as well.<br/>
<br/>
However it does not work. <br/>
<br/>
I will also state,
<CODE><s>
Code: Select all
</s><script src="https://website-cdn.com/js/javascript-file.js" type="text/javascript"></script><e>
Works just fine however, it is a javascript file. <br/>
<br/>
Ideally website.com is hosted on the primary vestacp server. <br/>
and website-cdn.com is hosted on a separate vestacp server at a different location.<br/>
<br/>
<br/>
What is causing the issue for CORS error code only on css files? Why would this be working for .js files and not CSS? would this be a vesta bug?</r>
Re: Cannot Access Remote CSS files from VestaCP
Have you tried using any data recovery software?