Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

React cross-origin error when using InterApplicationBus hook #29

Open
darrenfurr opened this issue Oct 28, 2019 · 0 comments
Open

React cross-origin error when using InterApplicationBus hook #29

darrenfurr opened this issue Oct 28, 2019 · 0 comments

Comments

@darrenfurr
Copy link
Contributor

During development, I found that if you do not use the correct Identity (I was just using a string) you will receive a cross-origin error in react development mode.

Example:
Inside my component:

const { data, isSubscribed } = useInterApplicationBusSubscribe("test-identity", "test-topic");

Then when I launch the app (see attached). Interestingly enough, when I converted the hook to use the v1 api (window.fin.desktop.) the cross origin error went away (course the Identity was wrong so it didn't work anyway).

Just thought I would pass this along.
-Darren
Screen Shot 2019-10-28 at 2 22 30 PM

@darrenfurr darrenfurr changed the title React cross-origin error when using InterApplicationBus React cross-origin error when using InterApplicationBus hook Oct 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant