07-09-2019 07:13 AM
Hi Everybody,
I am new to DevNet APIC-EM sandbox (reserved version). I used the new standalone Postman version to post the following request to the APIC-EM SDN controller:
http://10.10.20.60/andbox/apic_em/api/v1/ticket
I received "invalid csrf token" response together with 403 HTTP code.
Can anybody explain what is going on and how to solve this problem?
It looks like Postman is not sending a token that the APIC-EM controller is expecting.
Thank you for your help
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta charset="utf-8" />
<title> - APIC - Enterprise Module</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#28cdc1">
<link href="/fonts/font-awesome-4.5.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="/core/css/common.css" />
<script type="text/javascript" src="/libs/socketio.js"></script>
<script type="text/javascript" src="/core/requirejsAdmin.js"></script>
<script type="text/javascript" src="/libs/apic-em.js"></script>
</head>
<body>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Error</title>
</head>
<body>
<h1>invalid csrf token</h1>
<h2></h2>
<pre></pre>
</body>
</html>
</body>
</body>
</html>
<script type="text/javascript" nonce="">
window.appcontext = {
name: "",
uuid: ""
};
window.GRAPEVINE_API_URL_PREFIX = "/apic/grapevine/api";
window.API_URL_PREFIX = "/apic/api/v1";
window.API_URL_PREFIX_V0 = "/apic/api/v0";
window.CSRF = "";
</script>
Solved! Go to Solution.
07-09-2019 11:26 AM - edited 07-09-2019 11:31 AM
07-09-2019 11:26 AM - edited 07-09-2019 11:31 AM
you have
http://10.10.20.60/andbox/apic_em/api/v1/ticket
Please try https://10.10.20.60/api/v1/ticket
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:
This community is intended for developer topics around Data Center technology and products. If you are looking for a non-developer topic about Data Center, you might find additional information in the Data Center and Cloud community