Search code examples
reactjsherokupipelinestormpath

Heroku pipelines with react stormpath


I created app with react and express (client-side rendering). I use react-stormpath. When I added https://my-app-name.herokuapp.com into Authorized Origin URIs in Stormpath Admin it works ok. But when I created pipeline with review apps, it created new subdomain with every request e.g. https://my-app-name-pr-1.herokuapp.com and there is problem with CORS, because this new url is not in Authorized Origin URIs. And I can't use wildcards like: https://*.herokuapp.com.

Some hints how to manage it? Because I really don't want to add new Authorized Origin on every pull request.

Really thanks!


Solution

  • The inability to use wildcards for the Authorized Origin URIs is a bug that we are fixing, the fix should go out soon. If you need to work around this issue ASAP you can use one of our SDKs (like the Stormpath Node SDK) to programmatically add URLs the the application.