mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #16] GET on my Glitch API doesn't work #6
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#6
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?
Originally created by @aashutoshrathi on GitHub (Aug 22, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/16
Describe the bug
A simple GET request on http://aashutoshrathi.glitch.me/api/self/gh gives the error
To Reproduce
Steps to reproduce the behavior:
http://aashutoshrathi.glitch.me/api/self/ghExpected behavior
It should result in response same as http://aashutoshrathi.glitch.me/api/self/gh
Screenshots
@striebwj commented on GitHub (Aug 22, 2019):
Use https:// instead of http://.
Here is a screenshot from when I ran it using https://:

Here is a comment about http not working right now: link to comment
@liyasthomas commented on GitHub (Aug 23, 2019):
Possible duplicate of #2.
CORS is a server side security policy feature which blocks API calls from any non-HTTPS requests.
@aashutoshrathi commented on GitHub (Aug 24, 2019):
I think I should close it then.
@jamesscottbrown commented on GitHub (Aug 28, 2019):
This is not a CORS issue, but rather a Mixed Content issue. An
XMLHttpRequestorfetch()request is considered "active content"; "mixed active content" such as aXMLHttpRequestorfetch()to anhttp://URL from anhttps://URL has been blocked by default since Firefox 23 and is also blocked by Chrome.In this case, both URLs provide the same CORS headers:
Also, CORS does not block cross-origin requests: the same-origin policy prevents them by default, and CORS headers can be used to opt-in to allowing them.