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 have some sugesstion for modyfication. Browswers don't allow multiple domains, so if I want do this, I must to make this:
procedure(Req: THorseRequest; Res: THorseResponse; Next: {$IF DEFINED(FPC)}TNextProc{$ELSE} TProc {$ENDIF}) var sl: TArray<String>; Origin: String; begin sl := MyAllowOrigin.Split([',', ';']); Origin := Req.Headers['Origin']; if not MatchText(Origin, sl) then Origin := 'null'; HorseCORS() .AllowedOrigin(Origin); CORS(Req, Res, Next); end;
Maybe can some similar put into horse-cors?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I have some sugesstion for modyfication. Browswers don't allow multiple domains, so if I want do this, I must to make this:
Maybe can some similar put into horse-cors?
The text was updated successfully, but these errors were encountered: