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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content