Skip to content

Commit a735260

Browse files
authored
docs: muted errors in local dev for cors JS requests (#1424)
* Update troubleshooting.asciidoc Add note on `Script error` messages in local development environments. * Update troubleshooting.asciidoc
1 parent c70e310 commit a735260

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/troubleshooting.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Access-Control-Allow-Origin: *
3939
Access-Control-Allow-Origin: your page's origin
4040
----
4141

42+
NOTE: `Access-Control-Allow-Origin: *` will not match `localhost` in some browsers (e.g. https://bugs.chromium.org/p/chromium/issues/detail?id=67743[in Chrome]), causing `Script error` messages in local development environments when the configuration is otherwise correct.
43+
4244
TIP: To learn more about how browsers handle script errors, see the MDN page on the https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#notes[onerror] event.
4345

4446

0 commit comments

Comments
 (0)