[Cod-bugs] Request for answers about crystallography RESTFUL API

Saulius Gražulis grazulis at ibt.lt
Fri May 15 18:31:57 EEST 2020


Dear Amel,

at the moment I regard CORS as a wrong solution to a problem which was
created by a bad web design (exemplified by the current Web browsers and
 js, Reactjs, angular frameworks which you cite).

The obvious solution to your problem is to host scripts and COD data on
the same server, in this way you will always satisfy the same origin
requirements. One way to do this is to relay the COD structures from
your server (which you can additionally cash there, COD being the open
database with permitting license).

Sincerely yours,
Saulius

On 2020-05-15 03:44, Amel Daho wrote:
> My name is Amel  Ben Ahmed Daho, I am a web developer and I am currently
> working on integrating your RESTfull API with  “Alamgir Research Inc”
>  site to provide easy access and simplify finding and downloading files.
> 
> In the document you provided at the page
> https://wiki.crystallography.net/RESTful_API/
> <https://www.google.com/url?q=https://wiki.crystallography.net/RESTful_API/&sa=D&source=hangouts&ust=1589588693752000&usg=AFQjCNH3SlsA8Lh1uwCaBw9y4DthSE4Gzw>,
> the CORS (Cross Origin resource sharing) is not enabled which causes
> problems for most web apps (html/js, Reactjs, angular).
> 
> Since the browser does not allow retrieving data from sites that does
> not allow CORS, we are unable to retrieve data from your site using
> these apps, our intentions are to help users find as many resources as
> possible by looking in many sites (like yours) and provide them with
> links directly.
>
> I have been instructed to request further explanation about this
> situation, and to ask you the following:
> 
> Did I miss interpreted the docs or is your API not indented to be used
> like this (most pages including results.php do not have CORS headers)? 
> Or is it simply because someone forgot to enable it?
>
> In any case, Please let me know if you have an answer to my question,
> and in case you do not have someone from IT available, I can guide you
> or help you fix it (in case there is something wrong with the site).
>
> Looking forward to hear from you and and collaboration with your team.


-- 
Dr. Saulius Gražulis
Vilnius University Institute of Biotechnology, Saulėtekio al. 7
LT-10257 Vilnius, Lietuva (Lithuania)
fax: (+370-5)-2234367 / phone (office): (+370-5)-2234353
mobile: (+370-684)-49802, (+370-614)-36366
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grazulis.vcf
Type: text/x-vcard
Size: 4 bytes
Desc: not available
URL: <http://lists.crystallography.net/pipermail/cod-bugs/attachments/20200515/a02ba8b8/attachment.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://lists.crystallography.net/pipermail/cod-bugs/attachments/20200515/a02ba8b8/attachment.sig>


More information about the Cod-bugs mailing list