Baisc authorization in javascript

埋bug的明叔 2012-07-13 09:36:22
最近在做嵌入式设备网页和后台的交互,碰到一个问题。
设备使用的是Basic authorization认证方式,BOSS希望浏览器登录的时候显示login页面,而不是一个丑陋的登录对话框。
logout问题已经解决,现在的问题是使用XMLHttpObject在后台登录的话,firefox似乎不记录这个方式,HTTP HEADER使用不包含AUTHORIZATION段,其他页面依然认证失败。

请问有何办法能在HTML级实现BASIC AUTHORIZATION,且被记录下来,不需要登录对话框输入。。。。找了好久没找到。。
CSDN一直都有大神在的。。。不知道今天能否遇到。

谢谢各位了。
...全文
60 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
JavaScript Applications with Node.js, React, React Native and MongoDB: Design, code, test, deploy and manage in Amazon AWS By 作者: Eric Bush ISBN-10 书号: 0997196661 ISBN-13 书号: 9780997196665 出版日期: 2018-07-07 pages 页数: 445 JavaScript Applications with Node.js, React, React Native and MongoDB: Design, code, test, deploy and manage in Amazon AWS JavaScript is more popular than ever. This is due to the huge developer community and it being used in every layer of an application technology stack. This book will teach you how to develop JavaScript applications with simple to use, yet powerful JavaScript technologies and host everything in the cloud in an economic and robust way in AWS. Enjoy an all-encompassing presentation of theory, reference and implementation for building three-tier architectures with a Data Layer (MongoDB), Service Layer (Node.js/Express) and Presentation Layer (React/React Native). Learn how to architect, develop, test, secure, deploy and manage a RESTful Web Service. Contents Preface About the Author Introduction PART I: The Data Laver(MongoDB) Chapter 1: Fundamentals 1.1Definition of the Data Layer 1.2 Data layer design process 1.3Introducing MongoDB 1.4The MongoDB Collection 1.5The MongoDB Document Chapter2: Data Modeling 2.1 Referencing or Embedding Data 2.2When to use Referencing 2.3 Reference Relationship Patterns 2.4AHybrid Approach 2.5 Differentiating Document Types 2.6Running Out of Space in a Database 2.7 Access Control Chapter 3: Querving for Documents 3.1Query Criteria 3-2Proiection criteria 3.3 Querving Polymorphic Documents in a Single Collection Chapter 4: Updating Documents 4.1Update operators 4.2Array Update Operators 4.3Transactions Chapter 5: Managing Availability and Performance 5.1Indexing 5.2Availability through Replication 5.3 Sharding Chapter 6: NewsWatcher App Development 6.1 Create the Database and Collection 6.2 Data Model Document Design 6.3Trving Out Some Queries 5.4Indexing Policy 6.5Moving On Chapter 7: DevOps for MongoDB

87,907

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧