-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
test: do explicit check of CORS headers #3142
Conversation
@@ -28,10 +28,11 @@ thash='QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn' | |||
test_expect_success "GET to Gateway succeeds" ' | |||
curl -svX GET "http://127.0.0.1:$gwport/ipfs/$thash" 2>curl_output | |||
' | |||
cat curl_output |
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.
is this a stray debugging line?
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.
Yes, thanks.
6410418
to
52f7a74
Compare
grep "Access-Control-Allow-Origin:" curl_output && | ||
grep "Access-Control-Allow-Methods:" curl_output && | ||
grep "Access-Control-Allow-Origin:" curl_output | grep "\*" && | ||
grep "Access-Control-Allow-Methods:" curl_output | grep GET && |
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.
This will match GETT :P
52f7a74
to
8b7a4a7
Compare
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
8b7a4a7
to
3754803
Compare
Resolves: #2778 |
What does this resolve? can you copy-paste the line or link to it in the review? or link from there to here? |
Okay thanks @whyrusleeping |
This LGTM. merge it and link to it in the review issue. |
License: MIT
Signed-off-by: Jakub Sztandera [email protected]