Skip to content
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

Added x-frame-options verification to graphql api #320

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

wdestin
Copy link
Contributor

@wdestin wdestin commented Mar 29, 2021

@wdestin wdestin requested a review from Betree March 29, 2021 18:01
Copy link
Member

@Betree Betree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. My main concern is that this endpoint can easily be used to SPAM a random URL, there's no rate limiting. I'll add additional feedback in CaptainFact/captain-fact-frontend#765

Comment on lines +33 to +36
case String.match?(value, ~r/deny|sameorigin/i) do
true -> {:ok, false}
false -> {:ok, true}
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personal preference, not a request change

Suggested change
case String.match?(value, ~r/deny|sameorigin/i) do
true -> {:ok, false}
false -> {:ok, true}
end
{:ok, !String.match?(value, ~r/deny|sameorigin/i)}

@Betree Betree force-pushed the staging branch 6 times, most recently from 8edadfd to a2007b8 Compare May 3, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants