Securing a remote ajax method call

前端 未结 7 1989
面向向阳花
面向向阳花 2020-12-18 14:15

I have coded some JavaScript to perform an ajax call in an asp.net application. This triggers a method that calls a URL, sending some parameters in the POST.

The rec

相关标签:
7条回答
  • 2020-12-18 14:51

    Are all your customers on your domain?
    If not you won't be able to use the XMLHttpRequest object to send data from their site. The XHR is subject to the Same Origin Policy.
    You may be able to post to a page from your server in an iframe. You would need to prompt your users for their username and password so that these details aren't exposed your script and the target should be served over ssl.

    0 讨论(0)
提交回复
热议问题