keithjgrant / omnibear

A Micropub browser extension
MIT License
36 stars 8 forks source link

Display URL of new post #13

Closed keithjgrant closed 6 years ago

keithjgrant commented 7 years ago

Upon creation of a new post, the micropub server response should have a Location header indicating the URL of the new post. This url should be displayed as a link to the user.

keithjgrant commented 7 years ago

There is a permissions issue here with the extension... I can see the header in the response in DevTools, but the extension page does not have access to it (it returns as undefined if read). I’m hoping this can be solved w/ the correct permissions in the manifest.

I have tried adding "<all_urls>" to the permissions array, but it did not give me the access I needed.

keithjgrant commented 6 years ago

This now works in Firefox. Chrome simply does not allow access to the Location header in the response, so it will not work in Chrome — from what I can find, there is no way around this.