Skip to content

Commit 4d9783a

Browse files
authored
Improve readability
1 parent 560240b commit 4d9783a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

8290
See 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

9494
MIT © [Pavel Malyshev](https://github.com/PaulMaly) and [Alexander Volkov](https://github.com/valexr), Tilde Materials Informatics

0 commit comments

Comments
 (0)