From c7bfe3617f285d1fb84ac2cc2a7a1124b69838be Mon Sep 17 00:00:00 2001 From: "Sterling G. Baird" Date: Fri, 22 Nov 2024 13:25:44 -0500 Subject: [PATCH] Update configuration.md with warning about CORS / redirect URLs https://github.com/pyscript/pyscript/discussions/2244#discussioncomment-11312534 --- docs/user-guide/configuration.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/user-guide/configuration.md b/docs/user-guide/configuration.md index 57ce73d..2b2b322 100644 --- a/docs/user-guide/configuration.md +++ b/docs/user-guide/configuration.md @@ -174,6 +174,12 @@ into the target directory in the browser's built in file system. If there is a duplication PyScript will raise an exception to help you find the problem. +!!! warning + **Use destination URLs instead of CORS / redirect URLs.** + + For example, `https://github.com/pyscript/ltk/raw/refs/heads/main/ltk/jquery.py` + redirects to `https://raw.githubusercontent.com/pyscript/ltk/refs/heads/main/ltk/jquery.py`. Use the latter. + !!! tip **For most people, most of the time, the simple URL to filename mapping,