We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
I want to control Access-Control-Allow-Origin header for multiple domains.
Access-Control-Allow-Origin
To do this, I make these settings:
front
/
Rewrite Rules
RewriteCond %{HTTP:Origin} ^https?://(www\.)?(.*?example\.com3|.*?example\.com4)$ RewriteCond %{REQUEST_FILENAME} -f RewriteRule . - [E=AccessControlAllowOrigin:%{HTTP:Origin}]
Header Operations
add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e set service-worker-allowed /
In sometimes , lsws set incorrect AccessControlAllowOrigin value in response. This mostly happens for font file requests.
lsws
AccessControlAllowOrigin
Request headers :
GET /googleIcon/fonts/outlined2.woff2 HTTP/2 Host: example.com User-Agent: Mozilla/5.0 (****) Gecko/20100101 Firefox/133.0 Accept: application/font-woff2;q=1.0,application/font-woff;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: identity Origin: https://sub1.example.com3 <<<<<<<<<<< Problem Connection: keep-alive Referer: https://example.com/components/googleIcon/outlined.min.css?kplhp Sec-Fetch-Dest: font Sec-Fetch-Mode: cors Sec-Fetch-Site: cross-site
Response headers :
HTTP/2 200 cache-control: public, max-age=604800 expires: Fri, 17 Jan 2025 22:01:32 GMT etag: "406e8-678054de-cd070;;;" last-modified: Thu, 09 Jan 2025 22:59:42 GMT content-type: font/woff2 content-length: 263912 accept-ranges: bytes date: Fri, 10 Jan 2025 22:01:32 GMT server: LiteSpeed access-control-allow-origin: https://sub2.example.com3 <<<<<<<<<<< Problem service-worker-allowed: / alt-svc: h3=":443"; ma=2592000, h3-29=":443"; ma=2592000, h3-Q050=":443"; ma=2592000, h3-Q046=":443"; ma=2592000, h3-Q043=":443"; ma=2592000, quic=":443"; ma=2592000; v="43,46" X-Firefox-Spdy: h2
OpenLiteSpeed version : 1.8.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi
I want to control
Access-Control-Allow-Origin
header for multiple domains.To do this, I make these settings:
front
/
URIRewrite Rules
to :Header Operations
to :front
to a 443 ListenerWhat is happening?
In sometimes ,
lsws
set incorrectAccessControlAllowOrigin
value in response.This mostly happens for font file requests.
Example
Request headers :
Response headers :
OpenLiteSpeed version : 1.8.2
The text was updated successfully, but these errors were encountered: