Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

How do I add Access-Control-Allow-Origin in vestacp? cors

General questions about VestaCP
Post Reply
  • Print view
Advanced search
12 posts
  • Previous
  • 1
  • 2
skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How do I add Access-Control-Allow-Origin in vestacp? cors
  • Quote

Post by skurudo » Thu Sep 21, 2017 2:28 pm

youradds wrote:You shouldn't be editing the nginx.conf file directly!!!! Always edit the templates:
/usr/local/vesta/data/templates/web
Andy, good point! Always better use templates.
Top

americanninja
Posts: 11
Joined: Mon Feb 01, 2021 7:38 am

Os: Ubuntu 17x
Web: apache + nginx
Re: How do I add Access-Control-Allow-Origin in vestacp? cors
  • Quote

Post by americanninja » Mon Mar 29, 2021 7:38 pm

Thanks skurudo!

Can you please elaborate on how to do this?

I have the same issue as the thread starter. I was advised by my Wordpress Theme provider to enable CORS as it's blocking access to some font due to No "access-control-allow-origin' header present.

So how can this be fixed. Do I create an empty config file in that use director you provided under nginx and add the lines of code advised earlier in this thread.
It would be great if someone could help clearly explain the proper way to fix this, so that I can change this on my site and others that come across this thread can fix their site on their own as well. Thanks!
Top


Post Reply
  • Print view

12 posts
  • Previous
  • 1
  • 2

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password