using --wallet=
cycles wallet in dfx deploy fixed this
but yea confirmed that 0.13.1 version is redirecting .raw.ic0.app to .ic0.app
with "allow_raw_access": true
in both src and assets
and key “/LUV.png” set (record { headers = null; allow_raw_access = opt true; max_age = null })
with dfx 0.14.0 also same
and dfx canister install web_site --mode reinstall --network=ic
also same thing
added "Access-Control-Allow-Origin": "*",
in .ic-assets.json5
under "headers"
and the raw URL is working now
how would I use set_asset_properties
to set the headers directly?
this works
dfx canister call project_name_frontend set_asset_properties '( record { key="/specific_per_asset.png"; headers=opt(opt(vec{ record{"Access-Control-Allow-Origin"; "*"}})); allow_raw_access=opt(opt(true)) })' --network ic
hopefully more dfx examples are added to examples repo readmes
like:
dfx canister call quicksort sort '(vec { 5; 3; 0; 9; 8; 2; 1; 4; 7; 6 })'
which is the only example I could find for how to define a vec inline like this
having one full example call for each reference function would be much appreciated
https://internetcomputer.org/docs/current/references/asset-canister