Azure-docs: The expected 'Content-Type' header that should be returned is application/json.

Created on 21 Nov 2020  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

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:///.well-known/microsoft-identity-association. The server returned an unexpected content type header value. "

This is a problem. For any application that is deployed use static web files on a deployment service, the developer is unable to modify the response headers. As a result developers cannot verify their publisher domain without _changing their deployment strategy_.

This issue is loosely related to 39665.

Please fix this issue, for the following reasons:

  • there is no reason the charset designation should invalidate the hosted JSON file
  • it is a outsized cost to the developer to workaround this bug (by changing service providers), as compared to the seemingly small cost to removing the content-type check.
  • every developer using a standards compliant web server is going to hit this, and some may not be able to adjust the response headers.

Thank you,

Taylor

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

active-directorsvc assigned-to-author cxp develosubsvc product-question triaged

Most helpful comment

Couldn't agree more. Wasted a bunch of my time.

All 5 comments

Couldn't agree more. Wasted a bunch of my time.

@taylorchasewhite Thanks for your feedback! We will investigate and update as appropriate.

Thank you @taylorchasewhite . We have been waiting on this for a while now. Was just about to create an issue, till I came across yours. Not sure why it was considered ok to close the other issues, when users have been dealing with this for almost a year.

+1

Hi @souravmishra-msft & @rwike77, just checking in on this, have you guys decided the direction for this issue (I know addressing it may take some time), but I'd like to know roughly the path forward here.

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jharbieh picture jharbieh  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments

Favna picture Favna  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

Ponant picture Ponant  Â·  3Comments