-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Origin.isValid() incorrectly rejects chrome-extension
scheme
#2556
Comments
I'll take a look, thanks for the report |
@werdnum as a workaround, you can modify |
There are different behaviors in the
@pmlopes I believe we should update the code so that:
Sounds good to you? |
@pmlopes ping :-) |
tsegismont
added a commit
to tsegismont/vertx-web
that referenced
this issue
Mar 14, 2024
See vert-x3#2556 This commit makes it possible to use star origin in CORS handler setup with a Chrome extension client app. Chrome Extensions use an origin of the follow form: chrome-extension://<extension-id> An extension id is 32 chars long and contains chars from 'a' to 'p' (0->9 + A->F translated to a->p). Signed-off-by: Thomas Segismont <[email protected]>
tsegismont
added a commit
to tsegismont/vertx-web
that referenced
this issue
Mar 20, 2024
See vert-x3#2556 This commit makes it possible to use star origin in CORS handler setup with a Chrome extension client app. Chrome Extensions use an origin of the follow form: chrome-extension://<extension-id> An extension id is 32 chars long and contains chars from 'a' to 'p' (0->9 + A->F translated to a->p). Signed-off-by: Thomas Segismont <[email protected]>
tsegismont
added a commit
that referenced
this issue
Mar 20, 2024
* CORS: support Chrome extensions See #2556 This commit makes it possible to use star origin in CORS handler setup with a Chrome extension client app. Chrome Extensions use an origin of the follow form: chrome-extension://<extension-id> An extension id is 32 chars long and contains chars from 'a' to 'p' (0->9 + A->F translated to a->p). Signed-off-by: Thomas Segismont <[email protected]> * Review updates Signed-off-by: Thomas Segismont <[email protected]> --------- Signed-off-by: Thomas Segismont <[email protected]>
tsegismont
added a commit
that referenced
this issue
Mar 20, 2024
* CORS: support Chrome extensions See #2556 This commit makes it possible to use star origin in CORS handler setup with a Chrome extension client app. Chrome Extensions use an origin of the follow form: chrome-extension://<extension-id> An extension id is 32 chars long and contains chars from 'a' to 'p' (0->9 + A->F translated to a->p). Signed-off-by: Thomas Segismont <[email protected]> * Review updates Signed-off-by: Thomas Segismont <[email protected]> --------- Signed-off-by: Thomas Segismont <[email protected]>
Fixed by 69c27c0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
4.4.6
Context
I was looking into zyclonite/nassh-relay#21, and when doing so, I noticed that an 'accept all'
CorsHandler
nonetheless rejects requests whereOrigin
is set tochrome-extension://foobar
Do you have a reproducer?
https://github.com/zyclonite/nassh-relay
Steps to reproduce
docker run zyclonite/nassh-relay -p 8022
curl -H 'Origin: chrome-extension://foobar' http://localhost:8022/proxy?host=foo.bar.com
Notice in the logs:
Extra
See zyclonite/nassh-relay#21
The text was updated successfully, but these errors were encountered: