Closed simonw closed 5 years ago
Here's the metadata.json I have been testing with:
metadata.json
{ "title": "datasette-cors demo", "plugins": { "datasette-cors": { "host_wildcards": ["https://*.example.com"] } } }
I also tested "hosts": ["https://www.example.com"] and "allow_all": true
"hosts": ["https://www.example.com"]
"allow_all": true
Then test it by opening a browser devtools console on https://www.example.com/ and running the following:
https://www.example.com/
fetch("http://127.0.0.1:8001/fixtures.json").then(r => r.json()).then(console.log);
Here's the
metadata.json
I have been testing with:I also tested
"hosts": ["https://www.example.com"]
and"allow_all": true