ITé¢é£ãã¿ãä¸å¿ã¨ããã彷徨ããã¦ã§ãããã°ã©ãã¼ã®æè¡ã¡ã¢
ITé¢é£ãã¿ãä¸å¿ã¨ããã彷徨ããã¦ã§ãããã°ã©ãã¼ã®æè¡ã¡ã¢
2011-10-08 expressã§BASICèªè¨¼ connect Node.js express ä»åã¯ç°¡åã ãã©expressã使ã£ã¦ã®BASICèªè¨¼ã®ä»æ¹ãã¦ããããã ã®ã¡ã¢ã ããæ¹ã¯ç°¡åã以ä¸ã®ããã«è¨è¿°ããã°è©²å½ãã¹ã«å¯¾ãã¦BASICèªè¨¼ãããããã¨ãã§ããã var express = require('express'); var app = express.createServer();app.all('/admin', express.basicAuth(function (user, pass) { return user === 'admin' && pass === 'hoge'; })); ã¢ã¹ã¿ãªã¹ã¯(*)ã使ãã¨ãã以ä¸ã®URLã«å¯¾ãã¦BASICèªè¨¼ãããããã¨ãã§ããã app.all('/admin/*', express.basicAut
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}