Add a custom header value to image responses | Scene7

Issue

Is it possible to add a custom header value to the image response?
Our company requires an "Access-Control: header in our images to enable cross-origin request support.

Solution

Implement a ruleset that uses the header tag. Here is an example:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ruleset SYSTEM "RuleSet.dtd">

<ruleset>

<rule OnMatch="continue">

         <expression>\$CORS=</expression>

         <header Name="Access-Control-Allow-Origin">$CORS$</header>

</rule>

</ruleset>

 Adobe

Získajte pomoc rýchlejšie a ľahšie

Nový užívateľ?

Adobe MAX 2024

Adobe MAX
Konferencia o kreativite

14. – 16. októbra Miami Beach a online

Adobe MAX

Konferencia o kreativite

14. – 16. októbra Miami Beach a online

Adobe MAX 2024

Adobe MAX
Konferencia o kreativite

14. – 16. októbra Miami Beach a online

Adobe MAX

Konferencia o kreativite

14. – 16. októbra Miami Beach a online