AngularJS and SpringBoot secure communication [closed] - angularjs

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am wondering how to make simple and secure rest communication between my backend and frontend. I need to send some POST request's to my backend and somehow i need to secure that. This is simple app without any users accounts.

Serve your app over HTTPS instead of HTTP. Any calls made from angularjs using $http will be secured, you don't have to do anything here.

Related

How to cache all backend in the Rails? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 months ago.
Improve this question
Is it possible to temporarily cache all requests in the Rails backend?
Sometimes it's helpful to make frontend stuff without waiting for the backend on the page to reload.
Your question is very ambiguous. If you don't want to wait on the backend for development then you can cache your requests on the front-end using local storage or other client-specific APIs.
On the other hand, if you need backend caching it won't really serve your purpose because the client will still need to make the API call.
Lastly, if you need to mock your APIs then there are multiple such tools available. One that I like is https://designer.mocky.io/

Angularjs - get data from oracle database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm new to Angularjs. I was wondering how can i get oracle database data using Angularjs. Any help would be greatly appreciated.
Thanks,
Sukesh
Angularjs is client side framework based on javascript. There is nothing to do retrieving data from Oracle. It is server side's duty.
You should implement on server side technologies such as .net or php, and give services to client side through web api, rest api etc.

Create a real chat application between 2 clients or more [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a web application that I have created with angularJS/Symfony2 and a mobile app with(ionic) I want to create a real chat application between this 2 clients.I thought to use nodeJS and websockets??I can have many clients conncted from their mobile
I have read many articles about firebase for angularJS and redis,but I don't know from where I will start
have you please any idea how can I do that
thanks a lot
The simplest way to start is check basic chat solution on NodeJs http://socket.io/get-started/chat/
Also as alternative you can use Rachet(WebSockets for PHP) http://socketo.me/ to get more closer integration with Symfony2
You can definetely use node and socket.io.
Start here:
http://socket.io/get-started/chat/
To integrate it with angular, you can use this module:
https://github.com/btford/angular-socket-io

Cross-site scripting with Javascript framework [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We are thinking about implementing our new module with a Javascript framework GUI and Java backend.
The plan is that we call Ajax calls from the GUI to get the data from the backend.
Our worry is (due to our inexperience) is that if we deploy the GUI to http://server1 and the Java backend to http://server2, then wont the relevant Ajax calls from server1 to server2 qualify as Cross site scripting?
How can we prevent this in javascript frameworks?
(We are looking at Angular, Knockout, Ember.js, etc)
Have a look at CORS (Cross-origin resource sharing) http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
You basically need to specify, in the header of the response from the web service, which referers are allowed.
For example:
Access-Control-Allow-Origin: http://server1

Login Silverlight Website [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
Wich is the best (and safest) way to implement user login for a silverlight application?
It depends on where your authentication logic resides. If you store your data on a server and you communicate with it via RIA services, then you have access to a built in authentication framework. Here is an example.
If you do communication via plain WCF, then you can still do authentication over WCF in many ways.
Example of using Windows Authentication over WCF: http://msdn.microsoft.com/en-us/library/dd744835(v=VS.95).aspx
For your question: best and safest....Both are good for either server-communication method you use. If these don't seem best to you, you can always write your own security.

Resources