mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 05:47:32 +00:00
1c59d18fee
* add csrf * caching * caching * caching * caching * security headers * csp and security headers * error handler csp * select user with display name * csp * user selection styling * username to loginname * regenerate grpc * regenerate * change to login name
14 lines
454 B
Markdown
14 lines
454 B
Markdown
# QR Code to SVG
|
|
|
|
This package is a copy of https://github.com/aaronarduino/goqrsvg with the difference of creating the svg with `class` attribute instead of inline `style`:
|
|
|
|
```go
|
|
s.Rect(currX, currY, qs.blockSize, qs.blockSize, "class=\"color\"")
|
|
```
|
|
|
|
and not
|
|
```go
|
|
s.Rect(currX, currY, qs.blockSize, qs.blockSize, "fill:black;stroke:none")
|
|
```
|
|
|
|
This allows the svg to be styled by css more easily and does not compromise Content Security Policy (CSP). |