-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
only use local sandbox if same origin #2684
only use local sandbox if same origin #2684
Conversation
Reviewer's Guide by SourceryThis PR modifies the sandbox URL handling in Altair to only use a local sandbox when the base URI has the same origin as the current window location. It introduces a new URL parsing utility function to safely handle URL parsing operations. Updated class diagram for AltairConfigclassDiagram
class AltairConfig {
- localSandboxUrl: string | undefined
- useLocalSandboxUrl: boolean
+ getPossibleLocalSandBoxUrl() URL
}
class AltairConfig {
+ parseUrl(url: string) URL | undefined
}
note for AltairConfig "parseUrl is a new utility function for safe URL parsing."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @imolorhe - I've reviewed your changes - here's some feedback:
Overall Comments:
- Please fill out the PR description with the issue being fixed and explanation of the changes being made.
- Ensure you've completed the PR checklist items (running tests, updating documentation, etc).
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Visit the preview URL for this PR (updated for commit ac611cd): https://altair-gql--pr2684-imolorhe-only-use-lo-zx07rq8u.web.app (expires Sun, 03 Nov 2024 05:51:52 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 02d6323d75a99e532a38922862e269d63351a6cf |
Fixes
Checks
yarn test-build
Changes proposed in this pull request:
Summary by Sourcery
Bug Fixes: