Hi sir @nikkothari22
I have frappe setup in aws instance 13.20…
in that i created one turiya_app, i had react setup there. it’s working properly.
Now We created new instance. we had DNS multi tenant mode.
I have three different sites. I created one site and created turiya_app, i added bench add-spa react setup. I got that old code from gitlab and did yarn build.
Whatever that old code is working. If i create new api and try to call from front end i am getting this issue. How to solve this sir. Any solution.
in common_site_config file i added ignore_csrf : 1
<link
href="https://fonts.googleapis.com/css2?family=DM+Sans&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
<link
rel="shortcut icon"
href="/files/Turiyaform_Favicon-removebg-preview.png"
type="image/x-icon"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Turiyaforms</title>
<script type="module" crossorigin src="/assets/turiya_app/turiya/assets/index-2aa17b24.js"></script>
<link rel="stylesheet" href="/assets/turiya_app/turiya/assets/index-7e4036b6.css">
</head>
<body>
<div id="root"></div>
<script>
window.csrf_token = "None";
</script>
</body>
Thankyou