-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't login to a brand new app unless CORS allowed-origins is modified #1771
Comments
I was able to fix the |
We should copy the server generator from ionic. |
@mshima It's interesting that this exists because the main generator allows Ionic by default. |
@mraible only for |
@mshima Yes, you are correct. I'm wondering if we should add React Native's web by default, or remove Ionic and tell folks to add it. I kinda like that everything works when running in "dev" mode. |
Describe the bug
If I create a new app with
jhipster jdl bug-tracker.jdl --blueprints react-native
, I cannot log in because of CORS.Maybe it's always been this way? If I look at the last tutorial I wrote about it, the origin was
http://localhost:19006
and you needed to add it. It seems like we should be able to modify CORS as part of the generation process so people have a better developer experience.It also doesn't generate any entities in the React Native client.
There are entities generated in the JHipster app.
I noticed this happens with the Ionic blueprint too. I didn't think anything of it when I saw it earlier, but it appears to be a bug.
I also had to run
npm install
in both generated clients, which doesn't follow the main generator's process of installing everything by default.Instructions To reproduce
If I try with the following (after running
npm link
in the project):It get a different error and
npm start
doesn't work when choosing thew
option:JHipster app's
.yo-rc.json
Entity JDL or JSON files
Versions (please complete the following information):
main
The text was updated successfully, but these errors were encountered: