You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, one needs to start JabRef online locally as well for login etc to work. For easier testing, one should use https://jabref-online.herokuapp.com/api instead as a default (with the possibility to easily change it to say localhost:4000/api).
The first problem in doing this, is that jabref online@heroku is not allowing cross-origin requests. @mohit038 could you please try out if adding the following (in this or modified form) to the webpack config works:
see https://webpack.js.org/configuration/dev-server/#devserverproxy
(I think it would be good to use an environment variable for the server-url that can be provided using an env file, so that it's easy to change this to say localhost).
Mohit, please correct me if I'm wrong, but we don't face similar CORS issues in production, since we could then simply host the word addin on the same url has the jabref online api, right?
The text was updated successfully, but these errors were encountered:
Currently, one needs to start JabRef online locally as well for login etc to work. For easier testing, one should use
https://jabref-online.herokuapp.com/api
instead as a default (with the possibility to easily change it to say localhost:4000/api).The first problem in doing this, is that jabref online@heroku is not allowing cross-origin requests. @mohit038 could you please try out if adding the following (in this or modified form) to the webpack config works:
see https://webpack.js.org/configuration/dev-server/#devserverproxy
(I think it would be good to use an environment variable for the server-url that can be provided using an
env
file, so that it's easy to change this to say localhost).Mohit, please correct me if I'm wrong, but we don't face similar CORS issues in production, since we could then simply host the word addin on the same url has the jabref online api, right?
The text was updated successfully, but these errors were encountered: