Closed ozcan closed 7 years ago
Thank you very much for solving this, @ozcan. It is my fault for implementing such a hack to get the information to the NCBI servers and get it running, but I wasn't sure what would be a better way to do it :/
I think your solution works.
@ShaiberAlon noticed and reported this problem today. In the beginning I suspected from parameters but after spending hours on it, I could not find anything. Then I started playing with the headers and found out that
Origin
is the one causing the problem. When Origin ishttps://blast.ncbi.nlm.nih.gov
requests work but when it ishttp://127.0.0.1:8080
we get403 Forbidden
. This looked like to me a security precaution against CSRF attacks. The bad news is there is no way to modify this value but the good news is after spending bit time I triedGET
instead ofPOST
and it worked, so it seems they only enforce this new rule when method isPOST
.as a result
fire_up_ncbi_blast
function atanvio/data/interactive/js/utils.js
needs to be changed like belowto
I will do this change after little bit more testing. Also here I attached example requests below:
If it prints
<p>This page will be automatically updated in <b>1</b> seconds until search is done</p>
that means it worked, notice the| grep automatically
at the end of the curl commands.