Error Getting JSON File
The expected 'Content-Type' header that should be returned is "application/json". You may get an error as mentioned below if you use anything else like "application/json; charset=utf-8".
"Verification of publisher domain failed. Error getting JSON file from https://www.website.dk/.well-known/microsoft-identity-association. The server returned an unexpected content type header value."
Example of header type seen in dev tools
How it was Provoked
On registeredApps/ApplicationsListBlade, go to manage branding. Click the link "Configure a domain". You can either:
- Create a file named microsoft-identity-association.json with the provided content
- Download the provided file and upload it to your site
On "Verify and save domain", an error will be thrown if the content type header is not just JSON.
Apparently, this is an error Microsoft is working on fixing:
MS Sources