Categories
Bugs General Scripting

Apple MapKit JS JWT Woes

I’m just making a quick note of these two things here, as I wasted time over them this afternoon and I can come back to remind myself next time:

  • When specifying the “origin” value in a JSON Web Token (JWT), omit the trailing slash: use http://localhost:8000 not http://localhost:8000/ or you’ll get the warning “[MapKit] Authorization token origin restriction (‘http://localhost:8000/’) may not match the page origin (‘http://localhost:8000’)” and become very confused if you don’t spot that / at the end;
  • Check the warnings console, as that’s where MapKit JS sends these useful bits of advice. If you just look at errors and logs, you’ll miss them.

That’s all, folks.

Categories
Bugs Common sense General HTTP Microsoft Web Development Web Standards

More On ASP.NET’s Broken Error Handling

I’ve looked a bit more into the way ASP.NET handles HTTP errors, and frankly it now seems not just irritating, but downright bizarre.

Categories
Bugs Common sense General HTTP Web Development Web Standards

Why Can’t Microsoft Just Use HTTP Like Everybody Else?

A few moments ago I was following a link from Google to Raymond Chen’s excellent MSDN blog The Old New Thing. As has happened to me before, I ended up getting redirected to an ASP.NET error page at a totally different URL, telling me that the site was “unable to service my request.”

Categories
Bugs Internet Explorer Web Development XSLT 1.0

IE Conditional Comments in XSLT 1.0

Zen gardener Dave Shea’s post Bye Bye Tan Hack attracted a number of comments from people claiming that Internet Explorer’s conditional comments (CCs) were ungeneratable if you are using XSLT to produce your pages. “Strange,” I thought, “I’ve done that before.”

Categories
Bugs DOM Internet Explorer

Obscure Internet Explorer Bugs: #1 of… who knows?

The Web Standards Group presented ten questions to Tommy Olsson, one of which addresses the thorny issue of the abbr and acronym elements in HTML.