mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #494] [MERGED] Firefox Extension compatibility #2655
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2655
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/494
Author: @AndrewBastin
Created: 1/16/2020
Status: ✅ Merged
Merged: 1/16/2020
Merged by: @AndrewBastin
Base:
master← Head:feat/firefox-strategy📝 Commits (3)
4b48d8aRefactor to bring the nuxt loading bar code out of the strategies5070d9fAdded FirefoxStrategy to interact with the Firefox extension for Postwomanaafb4dcMerge branch 'master' into feat/firefox-strategy📊 Changes
4 files changed (+29 additions, -4 deletions)
View changed files
📝
functions/network.js(+14 -2)📝
functions/strategies/AxiosStrategy.js(+0 -1)➕
functions/strategies/FirefoxStrategy.js(+15 -0)📝
functions/strategies/ProxyStrategy.js(+0 -1)📄 Description
This PR intends to introduce compatibility with Postwoman Firefox Extension
This adds a new NetworkStrategy to hook with the Firefox Content Script to run the query.
NOTE
Do NOT use the extension from the store to test the strategy, because, the extension is configured to only hook into the postwoman.io and postwoman.netlify.com domains. Other domains won't get hooked and hence won't get access to the extension hooks.
So, to test this PR, you have to clone the postwoman-firefox repo.
Then head into the
manifest.jsonfile and edit it to match this snippet belowThen run
npm installand thennpm run build.NOTE:
npm run buildmay fail on non-Unix compliant systems as it uses the cp command, if it fails, just copy the icons folder and the manifest.json to the dist folderThis will create a folder called dist with the generated code.
Then, open Firefox and navigate to
about:debugging, selectThis Firefoxand the click onLoad Temporary Add-on...and then select the manifest.json file in the generated dist folder.After this you can navigate to the Postwoman app in localhost and access it, you can check if the hook was successful or not by opening the console on the Postwoman app and checking for the log "Connected to the Postwoman Firefox Extension!" after load.
Once that is done, just fire a request anywhere and you will see that CORS restrictions won't be applied.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.