In web application , How secure is local storage in Html5 or else is there any other way to secure the sensitive data in local storage.  Project Structure:  Front End: Html5,Angular js, Middletier: Asp.net webApi , BackEnd :Sql Server.  Once user log...
Response to preflight request doesn't pass access control check.  XMLHttpRequest cannot load http://localhost:49531/Access/Authenticate. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'...
I have written a website that utilizes a SHA-256 hash to validate a user's password. This is a relatively unsecure setup to start with, as most users will have the same username/password. To try and protect it at least a little bit, I do the foll...
I have a react component that when a checkbox is pressed, it calls a rest api, post request with a single parameter.  I put a breakpoint in the webapi and its never hit, still I get a 415 unsopported media type on the component  react js component (s...
I am trying to submit a form with multiple table rows. I have found examples online and have managed to send the table data to the AngularJS controller but I cannot figure out how to send that data to the apiController.   The form is a Purchase Order...
I have a simple Data Resource that retrieves a flat json file from within my own project. When I try to replace the url with that of a Working API end point that I have running on a separate domain I get a 401 (Unauthorized) error in chrome.  SETUP:...
I have a Rest API:  [HttpPost] [Route("Services/Image/Upload")] public string Upload([FromBody]GalleryItem galleryItem) {     try     {         var appSettings = ConfigurationManager.AppSettings["GalleryPath"].ToString();          usi...
There are lots of question like my question but I didn't any working solution.  I am using AngularJS and WebApi2 in my application.  Here is the JS code which call the initial API.  (function (module) { var baseUrl= "http://localhost:85";...
I am trying to call an endpoint with post method.  The code is:  import React, { Component } from 'react'; import { Input} from 'antd'; import Form from '../../components/uielements/form'; import Button from '../../compone...
I have the following controller:   public class ValuesController : ApiController {     // POST api/values     public IHttpActionResult Post(string filterName)     {         return new JsonResult<string>(filterName, new JsonSerializerSettings(),...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.