Bad CORS Policy and JavaScript Errors, Also Routing

Discussion in 'Forum Policy and Questions' started by _Martin, Feb 1, 2017.

  1. _Martin

    _Martin New Member

    Joined:
    Dec 10, 2014
    Messages:
    10
    Likes Received:
    1
    If accessing the forums via indiegamer.com:
    Not sure if anybody has brought this up, but the forums don't load images and I keep getting CORS errors in the console. I cleared by cache and nothing changed. I am using the latest Chrome version.

    Side note: why no HTTPS?
     
  2. bantamcitygames

    Administrator Original Member Indie Author Greenlit

    Joined:
    Jul 27, 2004
    Messages:
    1,718
    Likes Received:
    75
    I don't see that problem in Firefox. I also just downloaded the latest version of Chrome and don't see that error there either. Maybe a firewall/anti-virus issue? As far as the HTTPS, I know google recently updated Chrome to warn about sites that are not HTTPS, so that is something I will have to look into in the future.
     
  3. _Martin

    _Martin New Member

    Joined:
    Dec 10, 2014
    Messages:
    10
    Likes Received:
    1
    Okay, cool. Thanks for looking into it. I think it might be my proxy then.
     
  4. _Martin

    _Martin New Member

    Joined:
    Dec 10, 2014
    Messages:
    10
    Likes Received:
    1
    P.S. Not sure where you are with HTTPS or what environment you are rolling in but LetsEncrypt hands out three month free certificates. I have a server where I use this and just run a cron job to recertify (but I have to restart the webserver service after that as well - so perhaps not ideal).
     
  5. bantamcitygames

    Administrator Original Member Indie Author Greenlit

    Joined:
    Jul 27, 2004
    Messages:
    1,718
    Likes Received:
    75
    Interesting... could you explain more about how you do this or even provide the script to do so? I'm pretty strapped for time and maintaining this site tends to take a back seat. Things like this help it to get updated more easily.
     
  6. _Martin

    _Martin New Member

    Joined:
    Dec 10, 2014
    Messages:
    10
    Likes Received:
    1
    Supposedly this site is served by an Apache server so here is what I found (I was using nginx so I wanted to set up a test environment first before I sent you this). Cannot provide a full script because I am not sure if you are on Windows Server or some *nix flavor (I am assuming the latter?):

    So here are the commands that I ran through to configure Let's Encrypt via an Ubuntu server:
    LOGIN IN AS USER WITH SUDO PERMISSIONS
    > cd /usr/local/sbin
    > sudo wget https://dl.eff.org/certbot-auto
    > sudo chmod a+x /usr/local/sbin/certbot-auto
    > certbot-auto --apache -d indiegamer.com -d forums.indiegamer.com
    > sudo crontab -e
    > 30 2 * * 1 /usr/local/sbin/certbot-auto renew >> /var/log/le-renew.log

    That should set up your initial certificate (you may need to supply info on the first setup, but not the auto renew). Then it sets up cron to run every Monday at 2:30 am. I don't think that you need to restart Apache after the renew.

    I hope that helps!
     
  7. bantamcitygames

    Administrator Original Member Indie Author Greenlit

    Joined:
    Jul 27, 2004
    Messages:
    1,718
    Likes Received:
    75
    Awesome... thanks! Your assumption was correct about the platform. Hopefully I'll have some time this week to get this going.
     
    _Martin likes this.

Share This Page

  • About Indie Gamer

    When the original Dexterity Forums closed in 2004, Indie Gamer was born and a diverse community has grown out of a passion for creating great games. Here you will find over 10 years of in-depth discussion on game design, the business of game development, and marketing/sales. Indie Gamer also provides a friendly place to meet up with other Developers, Artists, Composers and Writers.
  • Buy us a beer!

    Indie Gamer is delicately held together by a single poor bastard who thankfully gets help from various community volunteers. If you frequent this site or have found value in something you've learned here, help keep the site running by donating a few dollars (for beer of course)!

    Sure, I'll Buy You a Beer