<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Build Apps POST call - HTTP 403 Error (Invalid CSRF T... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/build-apps-post-call-http-403-error-invalid-csrf-token/qaa-p/13985253#M4899039</link>
    <description>&lt;P&gt;I solved the issue.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I removed the app from the HTML5 repository in Workzone.&lt;/LI&gt;&lt;LI&gt;I redeployed the app from SAP Build apps&lt;/LI&gt;&lt;LI&gt;Refreshed the HTML5 repository in Workzone&lt;/LI&gt;&lt;LI&gt;Added the app to the role everyone en the portal page&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It worked. But also the other apps who had the same issue worked again.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2025 13:24:09 GMT</pubDate>
    <dc:creator>CoenAmista</dc:creator>
    <dc:date>2025-01-14T13:24:09Z</dc:date>
    <item>
      <title>Build Apps POST call - HTTP 403 Error (Invalid CSRF Token)</title>
      <link>https://community.sap.com/t5/technology-q-a/build-apps-post-call-http-403-error-invalid-csrf-token/qaq-p/13971913</link>
      <description>&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;I need your help on something about x-csrf-token problem.&lt;/P&gt;&lt;P&gt;I am making an web application that creates Sales Order to S/4HANA Cloud Public Edition by Build Apps.&lt;/P&gt;&lt;P&gt;Connection to S/4HANA is made by destination, and web application is deployed to my BTP subaccount's HTML5 Repository.&lt;/P&gt;&lt;P&gt;Screenshot under is the destination I set to S/4HANA Cloud Public Edition's "Sales Order(A2X)" OData V2 api.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JG_LEE_0-1735198976020.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/205184iD3BAD282CBFC933D/image-size/medium?v=v2&amp;amp;px=400" alt="JG_LEE_0-1735198976020.png" title="JG_LEE_0-1735198976020.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Type : HTTP&lt;/P&gt;&lt;P&gt;URL :&amp;nbsp;&lt;A href="https://{tenant}-api.s4hana.cloud.sap/sap/opu/odata/sap" target="_blank"&gt;https://{tenant}-api.s4hana.cloud.sap/sap/opu/odata/sap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Proxy Type : Internet&lt;/P&gt;&lt;P&gt;Authentication : Basic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;Additional Properties&amp;gt;&lt;/P&gt;&lt;P&gt;AppgyverEnabled : true&lt;/P&gt;&lt;P&gt;BuildApps.RequiresCsrf : true&lt;/P&gt;&lt;P&gt;HTML5.DynamicDestination : true&lt;/P&gt;&lt;P&gt;sap.applicationdevelopment.actions.enabled : true&lt;/P&gt;&lt;P&gt;sap.build.usage : odata_gen&lt;/P&gt;&lt;P&gt;sap.processautomation.enabled : true&lt;/P&gt;&lt;P&gt;WebIDEEnabled : true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plus, I&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JG_LEE_1-1735199170534.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/205185i9FF50B5BCD0D5250/image-size/medium?v=v2&amp;amp;px=400" alt="JG_LEE_1-1735199170534.png" title="JG_LEE_1-1735199170534.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see, I added "BuildApps.RequiresCSRF = true" to my destination so I can see the CSRF token settings too.&lt;/P&gt;&lt;P&gt;However, as I deploy this application and try to create Sales Order, error occurs and I can see this error message in my HTML5 repository.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JG_LEE_2-1735199425169.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/205186iAA80623A817CAFF1/image-size/medium?v=v2&amp;amp;px=400" alt="JG_LEE_2-1735199425169.png" title="JG_LEE_2-1735199425169.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What should I do to fix this problem??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2024 07:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/build-apps-post-call-http-403-error-invalid-csrf-token/qaq-p/13971913</guid>
      <dc:creator>JG_LEE</dc:creator>
      <dc:date>2024-12-26T07:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Build Apps POST call - HTTP 403 Error (Invalid CSRF T...</title>
      <link>https://community.sap.com/t5/technology-q-a/build-apps-post-call-http-403-error-invalid-csrf-token/qaa-p/13974131#M4897556</link>
      <description>&lt;P&gt;I have the same error when deploying the app in Workzone standard following the standard SAP Build procedure.&lt;/P&gt;&lt;P&gt;I created an app in SAP Build that I deployed in SAP Build to my Workzone instances.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CoenAmista_0-1735637743052.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/206312iA349D7F335339960/image-size/medium?v=v2&amp;amp;px=400" alt="CoenAmista_0-1735637743052.png" title="CoenAmista_0-1735637743052.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is app is succesfully added to my HTML5 repository and shown in workzone. There I assigned&amp;nbsp; the app to the role Everyone, to the correct group and to the correct portal page. It appears on the page. When clicking on the tile I have the error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CoenAmista_1-1735637841027.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/206313i668CA152C0FDD68C/image-size/medium?v=v2&amp;amp;px=400" alt="CoenAmista_1-1735637841027.png" title="CoenAmista_1-1735637841027.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I go to the HTLM5 repository to have&amp;nbsp; a look at the error log. I have exactly the same error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CoenAmista_2-1735637930554.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/206314i5EBB4DC284413665/image-size/medium?v=v2&amp;amp;px=400" alt="CoenAmista_2-1735637930554.png" title="CoenAmista_2-1735637930554.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After I deployed the app and received the error I removed an existing app from the portal page. After adding it again (without removing it anywere else) it give the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Different situation but same error as above.&amp;nbsp; Since this I followd the the SAP Build best practice it should work out of the box. And it worked in the past. It there a misconfiguration in automatically created BTP destination?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 09:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/build-apps-post-call-http-403-error-invalid-csrf-token/qaa-p/13974131#M4897556</guid>
      <dc:creator>CoenAmista</dc:creator>
      <dc:date>2024-12-31T09:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Build Apps POST call - HTTP 403 Error (Invalid CSRF T...</title>
      <link>https://community.sap.com/t5/technology-q-a/build-apps-post-call-http-403-error-invalid-csrf-token/qaa-p/13985253#M4899039</link>
      <description>&lt;P&gt;I solved the issue.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I removed the app from the HTML5 repository in Workzone.&lt;/LI&gt;&lt;LI&gt;I redeployed the app from SAP Build apps&lt;/LI&gt;&lt;LI&gt;Refreshed the HTML5 repository in Workzone&lt;/LI&gt;&lt;LI&gt;Added the app to the role everyone en the portal page&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It worked. But also the other apps who had the same issue worked again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 13:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/build-apps-post-call-http-403-error-invalid-csrf-token/qaa-p/13985253#M4899039</guid>
      <dc:creator>CoenAmista</dc:creator>
      <dc:date>2025-01-14T13:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Build Apps POST call - HTTP 403 Error (Invalid CSRF Token)</title>
      <link>https://community.sap.com/t5/technology-q-a/build-apps-post-call-http-403-error-invalid-csrf-token/qaa-p/14066342#M4909381</link>
      <description>We are also facing the same error after the app is deployed. Did you manage to solve this error?</description>
      <pubDate>Fri, 04 Apr 2025 10:11:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/build-apps-post-call-http-403-error-invalid-csrf-token/qaa-p/14066342#M4909381</guid>
      <dc:creator>ShyamBorgikar</dc:creator>
      <dc:date>2025-04-04T10:11:54Z</dc:date>
    </item>
  </channel>
</rss>

