ã¯ããã« APIãµã¼ãã¹ãæ§ç¯ããéã«ãPostmanãªã©ã®ãã¼ã«ã§ã¯æ£å¸¸ã«ã¢ã¯ã»ã¹ã§ãã¾ããã ãã©ã¦ã¶ããã¢ã¯ã»ã¹ããã¨ãã¨ã©ã¼ã«ãªãå ´åãããã¾ãã ããã¯CORS(Cross-Origin Resource Sharing)対å¿ããã¦ããªãå¯è½æ§ãããã¾ãã ãªããªãããµã¤ãã®ãã¡ã¤ã³ã¨APIãµã¼ãã¹ã®ãã¡ã¤ã³ãéãå ´å㯠å ã«optionsã¡ã½ããã§åãåããããã¾ãã許å¯ããå ´åã®ã¿å®éã®APIãéä¿¡ãã¾ãã â»åããã¡ã¤ã³ã®å ´åã¯CORSã®å¯¾å¿ã¯è¦ããªãã§ãã const app = express() const allowCrossDomain = function(req, res, next) { res.header('Access-Control-Allow-Origin', '*') res.header('Access-Control-Allow-Method
{{#tags}}- {{label}}
{{/tags}}