首页 \ 问答 \ 如何确保从我的应用程序调用URL而不是从浏览器手动调用(How to ensure a url is called from my application and not manually from browser)

如何确保从我的应用程序调用URL而不是从浏览器手动调用(How to ensure a url is called from my application and not manually from browser)

我有一个包含按钮的应用程序,单击此按钮,它将使用带有查询字符串参数的URL(我正在编码的页面的URL)打开浏览器窗口。

有没有办法确保URL来自我的应用程序,而且只来自我的应用程序 - 而不只是任何人在Web浏览器中手动输入URL?

如果没有,确保特定URL来自特定应用程序的最佳方法是什么 - 而不仅仅是手动输入地址栏或网络浏览器 -

我正在使用asp.net。


I have an application that contains a button, on click of this button, it will open a browser window using a URL with querystring parameters (the url of a page that i am coding).

Is there a way to ensure that the URL is coming from my application and only from my application - and not just anyone typing the URL manually in a webbrowser?

If not, what is the best way to ensure that a specific URL is coming from a specific application - and not just manually entered in the address bar or a web browser-

Im using asp.net.


原文:https://stackoverflow.com/questions/9455246
更新时间:2022-06-01 16:06

最满意答案

是的,一些浏览器已经更新了他们的JavaScript引擎以支持大多数ES6功能。

您可以在https://caniuse.com/#search=ES6上了解大部分支持

但是,您无法确定哪个浏览器支持ES6的任何部分,也不能退出AFAIK。

最安全的方法是查看观众的浏览器使用情况,然后查找所有这些常见的常用JS功能集。 今天仍在使用的一些浏览器甚至不完全支持ES5


Yes, some browsers have already updated their JavaScript engines to support most ES6 features.

You can learn about most of that support on https://caniuse.com/#search=ES6

You cannot however be sure which browser supports what part of ES6 at any given time, nor opt-out of it AFAIK.

The safest approach is to look at your audience's browser use and then find the common set of JS features that are common to all of them. Some browsers still in use today do not even fully support ES5.

相关问答

更多
  • 是的,一些浏览器已经更新了他们的JavaScript引擎以支持大多数ES6功能。 您可以在https://caniuse.com/#search=ES6上了解大部分支持 但是,您无法确定哪个浏览器支持ES6的任何部分,也不能退出AFAIK。 最安全的方法是查看观众的浏览器使用情况,然后查找所有这些常见的常用JS功能集。 今天仍在使用的一些浏览器甚至不完全支持ES5 。 Yes, some browsers have already updated their JavaScript engines to su ...
  • 我不认为你可以通过这种方式将refs传递给组件,当然它在React不起作用,我也不认为它在React-Native会以这种方式工作。 我不清楚你为什么试图从Map组件中打开Drawer ,因为看起来Map组件只能在Drawer打开时访问,但是,如果你想从子.open中访问父行为,那么一个好的模式是通过函数让孩子们执行(你可能会认为这实际上很糟糕,并且传递事件是一种更强大的模式)。 我从来没有使用过这个库,所以我对它的用法并不完全清楚,但是你可以像这样通过函数: class Application exten ...
  • 由于符号是值而不是对象,因此它们是通过对Symbol的普通函数调用创建的,而不是通过在其上调用new来创建的。 在您正在使用的Chrome版本中, new Symbol为您提供了这样一个值的包装器对象(即,您可以通过在结果上调用.valueOf来获取实际符号)。 由于这是一个常见的陷阱,ES6草案规范最近改为禁止构造函数调用Symbol 。 也就是说,您已经在代码的第一行得到了一个例外。 此更改已在V8中实施,但尚未进入Chrome。 Since symbols are values, not object ...
  • 您无法在Chrome中禁用ES2015 +语言功能。 你可以做的是使用“linter”工具(如ESLint)来检查你的代码,以确保它没有你不想要的东西。 ecmaVersion例子,这个特定的程序有一个ecmaVersion设置 ,你可以用它来控制它应该和不应该在你的文件中允许的语法; 据推测其他人也有。 另一种选择(以及我对我自己的工作的偏好)是即使在我的目标浏览器不支持它们时也使用新功能,并将其转储回ES5(在我的情况下,使用Babel )。 这样,即使我必须支持IE,我也可以获得新功能的优势。 You ...
  • 这是与类型相关的问题。 无论出于何种原因,typescript认为res属于{}类型,因此抱怨pessoa不存在于该类型中 使用 (res: any) => { this.pessoa = res.pessoa; }, 或者如果您知道它,请使用适当的类型。 This is a type related issue. For whatever reason, typescript thinks res is of type {} and thus complains that pessoa doesn' ...
  • 这段代码应该异步运行 是和不是,这取决于你正在谈论的代码的哪一部分。 您的承诺执行程序中的代码(您传递给new Promise的函数) 不是异步运行的。 从§25.4.3.1 ,第10步: 让Completion成为Call(执行者,未定义,«resolvingFunctions。[[Resolve]],resolvingFunctions。[[Reject]]»)。 请注意,没有任何关于new Promise异步调用执行程序的信息。 (这是一个“ 呼唤 ”,而不是“ EnqueueJob ”。) 异步保证 ...
  • Cesium是一个node.js模块,这意味着它使用module.exports的node.js模块语法,而不是export default { }的ES6模块规范。 为了在前端使用Cesium和ES6,你需要像Browserify或Webpack这样的东西,它允许你使用import Cesium from 'cesium' Cesium 。 Cesium is a node.js module, which means it uses the node.js module syntax of module ...
  • 它目前仅在Traceur中得到支持 。 你可以在他们的REPL中玩它。 es6fiddle.net似乎还不支持它,但可能很快就会支持它。 Mozilla 正在研究它,所以希望尽快在夜间建立。 It's only supported in Traceur at the moment. You can play with it in their REPL. es6fiddle.net doesn't seem to support it yet, but probably will soon. Mozilla ...
  • 如果您希望在使用Babel强制执行的'use strict'时它有效,则需要先声明users 。 如果您不使用Babel或“使用严格”,您的原始代码将正常工作。 var users; if( (users = resp.results) && users.length > 0 ) { // do something with users } 将使用'use strict' 。 如果你想继续使用这个技巧,你也可以从你转换的babel代码的顶部手动删除'use strict' 。 If you wan ...
  • 我解决了自己的问题 将PageController更改为: class PageController { constructor($scope, $state, GlobalLoading){ this.$scope = $scope; this.$state = $state; //GlobalLoading is the service I injected this.globalLoading = Glob ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。