Skip to content

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.

3 participants