How do you call an SSE locally in OSF?
Summary:
When developing locally, both the OSF app and an SSE, how do you configure the OSF app to call your SSE running on localhost instead of the server SSE?
Content (required):
I have created some custom OSF endpoints that point to an SSE. For testing, I need to have the OSF app running on localhost call the SSE running on localhost (different port). Needs to be able to work using the dsAssetMode=remote option as the local option is very limiting.
Note: I was able to get this to work by overriding the endpoints/utils/endpoint-factory/index.js file and checking to see if the endpointId was either 'extget' or 'extpost' and manually changing the origin but this is more of a hack and would prefer a cleaner solution.
Tagged:
1