-
Notifications
You must be signed in to change notification settings - Fork 1
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
AJAX Login #5
Comments
Hi, grunt-gapreload uses the Can you provide more informations about your setup? My point is I don't see why you would need to enable CORS for pages served this way because it's only meant for debugging. I guess you would rather enable CORS on your production server, maybe this website can help. Please, keep me updated, I'd like to know more about this issue too! 😄 |
Hi Sebastien and thank you for your reply. WHY THE PROBLEM SOLUTION
etc... |
I meant Thank you very much for those details and solution! I'll reference your comment in GapReload README files. Do you think some kind of corsproxy integration would be possible/useful here? |
Thanks go to you :) |
Then I'll see if what's possible to be done. Have a nice day! |
You too! I'll try to contribute soon about another thing I love: bower + wiredep integration in this flow. |
Great! I leave this issue open for now so that I don't forget about it. |
Hi, @sebastien-p: Thanks for your plugin, it's purely awesome! By advance thanks! |
@grunnlock You're very welcome 😄 |
@grunnlock atm my grunt process is quite simple. I played with bower in order to install the packages in app/ (it is quite dirty cause eventually you'll like to remove all the sources ad minifying all the scripts but it works well during development). Then, I introduced wiredep and attached it to livereload/watch. Here's my Gruntfile for reference:
and my .bowerrc
|
@sebastien-p: you'e welcome! |
You connect your phone (win the app running on it) with the live reload functionality? |
@grunnlock you don't have to. The page refreshes automatically since gapreload basically spawns the web page generated by cordova serve into your app frame so it refreshes just like it would do in a common browser. Let me know if I've been unclear (very likely I guess :)) |
@enricodeleo: Oh ok! Sorry, I'm really new at Phonegap development and over my experimentations I didn't realize it could become that close to web develoemt process. |
@grunnlock Yes, GapReload's source code is actually quite simple. The most notable thing the plugin does is to redirect your whole app to the |
@grunnlock don't worry, we're here to help! Yes, you're right the process is what you mentioned. It works well both for real devices (although I suggest to disable the automatic sleep of your device) and emulators like the very good Genimotion. @sebastien-p I'll suggest not to use the Mac app even under OS X. The Grunt plugin is way more handy! |
Thank you very much to both of you for your help! @sebastien-p: I'm now making a Grunt template project using GapReload, I'm still getting the error |
Hi everyone,
I'm working on an app that make a login request via ajax, but I can't make it work when under gapreload. I read that there is a limitation due to the lack of CORS on the pages served with gapreload. Any ideas about how to solve this issue?
The text was updated successfully, but these errors were encountered: