Body does not pass verification

Hey guys

Getting “Body does not pass verification” for a simple HTML canister but with lots of larger files.

What could be the problem ?

Can you tell a bit more about your canister?

  • Are you using the default asset canister? This has a massive impact on my answer.
  • Does this happen repeatedly or just occasionally? You could be hitting a bad replica or your system time could not match up with the IC time
  • Any browser console logs? Probably not I guess but there is a chance
1 Like

PROJECT ROOT ← App main folder
├── src
│ ├── index.html
├── assets
│ ├── Images
│ └── 10
│ └── 11
│ └── 12
└── 13

Plain html content showing lots of images

Have this external reference

 <link rel="stylesheet" href=""
   crossorigin="anonymous" referrerpolicy="no-referrer" />
 <script src=""
   crossorigin="anonymous" referrerpolicy="no-referrer"></script>
 <script src=""
   crossorigin="anonymous" referrerpolicy="no-referrer"></script>

You are probably not serving the right certificate with your asset. But if you access your canister through <canister id> instead of <canister id> things should work out. You’ll also have to turn of the redirect.

1 Like

Thank severin. How to turn off the redirect ?

Have a look at this changelog entry: sdk/ at master · dfinity/sdk · GitHub
You also have to change the match to hit every file instead of just one. Most likely you want "match": "**/*"