site 1 has image.png
site 2 wants to fetch image.png from site 1
CORs normally blocks this type of request. My ask is simply to add a
```
Access-Control-Allow-Origin: *
```
...response header when site 2 fetches from site 1. For the life of me there is no combination of configuration I can slap together to get this to work. So far this is what I am doing, any help would be greatly appreciated. The has been the hardest api to understand in all my years of working in technology but some considerable margin.
```
{
manifest_version: 3,
...
"permissions": [
"declarativeNetRequest",
"declarativeNetRequestWithHostAccess",
"declarativeNetRequestFeedback",
"scripting",
"activeTab"
],
"host_permissions": ["https://*.
site-1.com/*", "https://*.
site-2.com/*"],
"declarative_net_request": {
"rule_resources": [
{
"id": "ruleset_1",
"enabled": true,
"path": "rules.json"
}
]
},
}
}
```
```
[
{
"id" : 1,
"priority": 1,
"action": {
"type": "modifyHeaders",
"responseHeaders": [
{ "header": "Access-Control-Allow-Origin", "operation": "set", "value": "*" }
]
},
"condition" : {
"urlFilter" : "https://*.
site-1.com/*",
"resourceTypes" : ["image"]
}
}
]
```
Thanks in advanced