CORS測試

"> Page Index

CORS測試

"> Page Index

CORS測試

">
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>Page Index</title>
</head>
<body>
<h2>CORS測試</h2>
<p id="info"></p>
</body>
<script src="<https://code.jquery.com/jquery-3.4.1.js>"></script>
<script>
    $.ajax({
        url: "<http://47.117.170.185/api/v1/challenge>",
        type: "POST",
        success: function (data) {
            $("#info").html("跨網域請求成功:"+JSON.stringify(data));
        },
        error: function (data) {
            $("#info").html("跨網域請求失敗!!");
        }
    })
</script>
</html>