@@ -36,6 +36,14 @@ If you are **not** using ES6 or CDN, add to your HTML just before closing the
3636
3737## Usage
3838
39+ The code is generally isomorphic, however one should additionally take care of
40+ downloading the cache or setting the CORS policy for the browsers. Concerning
41+ the CORS, the ` Optimade ` class constructor accepts the ` corsProxyUrl ` parameter,
42+ pointing to a running ` cors-anywhere ` proxy instance. This will be valid
43+ until all the Optimade providers are supplying the header
44+ ` Access-Control-Allow-Origin $http_origin ` in their responses. For the
45+ server-side environment this is not required.
46+
3947### Discovery and querying
4048
4149``` ts
@@ -81,14 +89,6 @@ const results = await optimadeClient.getStructuresAll(
8189
8290See also the ` demo ` folder.
8391
84- The code is generally isomorphic, however one should additionally take care of
85- downloading the cache or setting the CORS policy for the browsers. Concerning
86- the CORS, the ` Optimade ` class constructor accepts the ` corsProxyUrl ` parameter,
87- pointing to a running ` cors-anywhere ` proxy instance. This will be valid
88- until all the Optimade providers are supplying the header
89- ` Access-Control-Allow-Origin $http_origin ` in their responses. For the
90- server-side environment this is not required.
91-
9292## License
9393
9494MIT © ; [ Pavel Malyshev] ( https://github.com/PaulMaly ) and [ Alexander Volkov] ( https://github.com/valexr ) , Tilde Materials Informatics
0 commit comments