-
-
Notifications
You must be signed in to change notification settings - Fork 318
Allow some customizations on CORS configuration #2418
New issue
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
Comments
Please note that you will also need to allow the Per MDN:
|
I will verify it, but I would expect this to cover for anything https://github.com/shlinkio/shlink/blob/develop/module/Rest/src/Middleware/CrossDomainMiddleware.php#L42 That basically means Shlink will set the value of It's always better if it can be made so that there's less room for human error. |
One sec, I think something else is going on for us. You're right that the browser should include all of the headers in the original request, in the |
< 6A0F p dir="auto">Sorry, CORS is quite complex in practice. It's a pain in the ass 😅 |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Allow customizing allowed origins, allow credentials, and max age:
*
(allow any origin),<origin>
(which will make it resolve the value from the request'sOrigin
header) or a comma-sepparated list of origins, which will make Shlink return the header only when those origins are the ones making the request. Defaults to*
.true
orfalse
. Defaults tofalse
.3600
.More details:
Use case
This will allow to better support cases like the one described in shlinkio/shlink-web-client#1510
The text was updated successfully, but these errors were encountered: