<?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>topic CORS error when using integrity as crossorigin on &amp;amp;lt;script&amp;amp;gt; in cybersource APIs</title>
    <link>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/90959#M1997</link>
    <description>&lt;P&gt;I'm following the steps here:&lt;BR /&gt;&lt;A href="https://support.visaacceptance.com/knowledgebase/Knowledgearticle/?code=KA-07551" target="_blank"&gt;https://support.visaacceptance.com/knowledgebase/Knowledgearticle/?code=KA-07551&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Managed to put the "integrity" and "crossorigin" attributes in my js tag to load microform, but when i do that i got a CORS error.&lt;BR /&gt;Without those two attributes the JS loads fine, i'm doing anything wrong? Is the documentation is wrong?&lt;BR /&gt;I really want to follow the documentation and do the thinks correctly, but i'm almost ignoring those two attributes to make it work.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2024 20:51:12 GMT</pubDate>
    <dc:creator>tpinto</dc:creator>
    <dc:date>2024-12-16T20:51:12Z</dc:date>
    <item>
      <title>CORS error when using integrity as crossorigin on &amp;lt;script&amp;gt;</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/90959#M1997</link>
      <description>&lt;P&gt;I'm following the steps here:&lt;BR /&gt;&lt;A href="https://support.visaacceptance.com/knowledgebase/Knowledgearticle/?code=KA-07551" target="_blank"&gt;https://support.visaacceptance.com/knowledgebase/Knowledgearticle/?code=KA-07551&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Managed to put the "integrity" and "crossorigin" attributes in my js tag to load microform, but when i do that i got a CORS error.&lt;BR /&gt;Without those two attributes the JS loads fine, i'm doing anything wrong? Is the documentation is wrong?&lt;BR /&gt;I really want to follow the documentation and do the thinks correctly, but i'm almost ignoring those two attributes to make it work.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 20:51:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/90959#M1997</guid>
      <dc:creator>tpinto</dc:creator>
      <dc:date>2024-12-16T20:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error when using integrity as crossorigin on &amp;lt;script&amp;gt;</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/91039#M2032</link>
      <description>&lt;P&gt;I am also having similar issues, when adding integrity tag with crossorigin as anonymous, javascript library is blocked due to below error.&lt;/P&gt;&lt;P&gt;Subresource Integrity: The resource '&lt;A href="https://testflex.cybersource.com/microform/bundle/v2.0.2/flex-microform.min.js" target="_blank"&gt;https://testflex.cybersource.com/microform/bundle/v2.0.2/flex-microform.min.js&lt;/A&gt;' has an integrity attribute, but the resource requires the request to be CORS enabled to check the integrity, and it is not. The resource has been blocked because the integrity cannot be enforced.&lt;/P&gt;&lt;P&gt;Does that mean cybersource has to enable CORS on server side ? does anyone know how to resolve this issue iof it is not cybersource issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 21:00:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/91039#M2032</guid>
      <dc:creator>smanick</dc:creator>
      <dc:date>2025-01-06T21:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error when using integrity as crossorigin on &amp;lt;script&amp;gt;</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/91095#M2058</link>
      <description>&lt;P&gt;We also having the same issue. Please suggest the right solution.&lt;BR /&gt;&lt;BR /&gt;I think adding these two headers to response should resolve the issue:&lt;BR /&gt;Cross-Origin-Embedder-Policy: credentialless&lt;BR /&gt;Cross-Origin-Resource-Policy: cross-origin&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 10:37:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/91095#M2058</guid>
      <dc:creator>OlegO</dc:creator>
      <dc:date>2025-01-22T10:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error when using integrity as crossorigin on &amp;lt;script&amp;gt;</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/91135#M2071</link>
      <description>&lt;P&gt;We fixed the issue by changing/adding&amp;nbsp;Сross-Origin-Embedder-Policy response header&amp;nbsp;to unsafe-none for our e-commerce website.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 13:51:26 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/91135#M2071</guid>
      <dc:creator>OlegO</dc:creator>
      <dc:date>2025-01-28T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error when using integrity as crossorigin on &amp;lt;script&amp;gt;</title>
      <link>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/95117#M4185</link>
      <description>&lt;P&gt;Hey, yeah I’ve run into this kind of thing before and it’s honestly super confusing the first time you see it.&lt;/P&gt;&lt;P&gt;From what you’re describing, it sounds like the script loads fine normally, but the moment you add integrity + crossorigin, the browser starts throwing CORS errors. That usually isn’t you doing something wrong—it’s more about how SRI (subresource integrity) and CORS headers need to match perfectly from the server side.&lt;/P&gt;&lt;P&gt;I faced something similar when integrating a third-party JS SDK, and what I noticed was: if the provider doesn’t return proper CORS headers or the integrity hash is slightly off, the browser just blocks it.&lt;/P&gt;&lt;P&gt;What worked for me:&lt;/P&gt;&lt;P&gt;Double-check the exact script URL vs the integrity hash (even a small mismatch breaks it)&lt;/P&gt;&lt;P&gt;Try crossorigin="anonymous" only (no credentials)&lt;/P&gt;&lt;P&gt;Confirm the CDN actually supports SRI + correct CORS headers&lt;/P&gt;&lt;P&gt;Not sure if Visa docs are outdated, but sometimes they assume modern CDN setup.&lt;/P&gt;&lt;P&gt;In my case I just had to relax strict SRI until provider fixed their setup (was working on Dooflix side integrations too).&lt;/P&gt;&lt;P&gt;Have you verified the integrity hash matches the exact file version you’re loading?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 17:40:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/cybersource-APIs/CORS-error-when-using-integrity-as-crossorigin-on-amp-lt-script/m-p/95117#M4185</guid>
      <dc:creator>CosmicVibes</dc:creator>
      <dc:date>2026-04-16T17:40:14Z</dc:date>
    </item>
  </channel>
</rss>

