Skip to content
This repository was archived by the owner on Feb 25, 2018. It is now read-only.

Commit 474e8fd

Browse files
committed
More infos on CORS in README
Again #25.
1 parent d8132d9 commit 474e8fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ For example you need to set the header to:
8585

8686
This should fix [the issue](https://github.com/anselmh/object-fit/issues/7). If you also need to support credentials, [you can’t use `*`](#25) but need the server reply with two headers (server needs also to reply with `Access-Control-Allow-Credentials: true`), one of which includes the origin in question.
8787

88+
It is recommended to add the attribute `crossorigin="use-credentials"` to your CSS `link` element that is called from the external resource to indicate what type of CORS the server should reply with.
89+
8890
In case you can’t alter the CSP / CORS settings of the server in question, you can disable parsing external CSS files in the config of the call:
8991

9092
<script>

0 commit comments

Comments
 (0)