Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a scenario where my apigateway is going to be made secure, which is the entry to access all micro services.

Right now we use these APIs for web based apps by making server side calls(using C#).

we are going to make the APIs public, where mobile apps, other web apps or other services can request them to consume the data.

Is there a secure way to perform API request from client side script like javascript?

As far as i have come across, it is quite impossible.

Expecting some good suggestions. Any further discussion is warmly welcomed.

What I have tried:

1.I have read across few articles mentioning use of proxy servers in between client and API server.
2.Hashing combination of informations and passing in headers.
3.Storing information in cookies.
Posted
Updated 10-May-17 10:21am
Comments
[no name] 10-May-17 13:38pm    
"Any further discussion is warmly welcomed", then perhaps posting your topic for discussion in a discussion forum would be more suitable.
Member 1097736 10-May-17 14:22pm    
Thanks for suggesting.

1 solution

Have you looked at using JSON Web Tokens? (JWT, also pronounced "JOT".) These are sort of an industry standard for securing API calls. Here's a good short intro: The Anatomy of a JSON Web Token ― Scotch[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900