Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Forums Forums Oro Community CORS Policy error

This topic contains 4 replies, has 2 voices, and was last updated by  nxavier 5 years ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #38464

    nxavier
    Participant

    We got the Orocommerce through Amazon AMI. The action icons are not loading and we are getting the following error. Can you please suggest the way to load the icons and images to the site?

    Access to font at ‘http://oro.demo/bundles/bowerassets/font-awesome/fonts/fontawesome-webfont.woff2?af7ae505a9eed503f8b8e6982036873e’ from origin ‘http://XXXXXXXXXX.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
    -Xavier

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #38465

    Andrey Yatsenko
    Moderator

    This is a known issue that was fixed in 3.1.4 version.
    Please follow the Upgrade Guide to get the newest version

    #38472

    nxavier
    Participant

    Thank you, Andrey. We ended up with the following error after the steps.
    Fatal error: Uncaught RuntimeException: In ConnectionFactory.php line 87: An exception occured while establishing a connection to figure out your pla tform version. You can circumvent this by setting a ‘server_version’ configuration value For further information have a look at: https://github.com/doctrine/DoctrineBundle/issues/673 In AbstractMySQLDriver.php line 112: An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused In PDOConnection.php line 50: in /var/www/html/commerce/vendor/oro/platform/src/Oro/Bundle/EntityExtendBundle/OroEntityExtendBundle.php on line 130

    #38473

    Andrey Yatsenko
    Moderator

    You can circumvent this by setting a ‘server_version’ configuration value

    This usually means your database credentials are not valid.
    You can try to connect manually to the database with the same credentials to validate them.

    #38474

    nxavier
    Participant

    Thank you for the quick response. We don’t have the credentials to the db. They have provided only the admin portal login.
    -Xavier

Viewing 4 replies - 1 through 4 (of 4 total)

The forum ‘Oro Community’ is closed to new topics and replies.

Back to top