The init preflight of the "fh-js-sdk" fails when web application is loading

Solution Verified - Updated -

Issue

  • The init preflight of the fh-js-sdk fails when web application is loading. Following an example of this error

    XMLHttpRequest cannot load
    https://example.feedhenry.com/box/srv/1.1/app/init.
    Response to preflight request doesn't pass access control check: No
    'Access-Control-Allow-Origin' header is present on the requested
    resource.
    Origin 'https://example-appid-dev.mbaas1.us.feedhenry.com' is
    therefore not allowed access. The response had HTTP status code 404
    

Environment

  • Red Hat Mobile Application Platform (RHMAP) - v3
  • fh-js-sdk
  • fh.init

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.