ojoanalogo / nestjs-redoc

📘 ReDoc frontend for you NestJS swagger API documentation
MIT License
146 stars 55 forks source link

fix: CSP problem in Safari #24

Closed lembdev closed 3 years ago

lembdev commented 3 years ago

This fix: Refused to load blob because it appears in neither the child-src directive nor the default-src directive of the Content Security Policy:

Something went wrong...

The operation is insecure.
Stack trace
[native code]
https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:80:108229
https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:94:33533
e@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:94:33534
e@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:94:83796
https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:88:66420
https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:88:67371
Fa@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:64:70125
cl@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:64:96962
sl@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:64:96887
Zs@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:64:93917
Zs@[native code]
https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:64:45558
https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:72:4087
Yo@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:64:45504
Vo@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:64:45439
Gs@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:64:90702
enqueueSetState@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:64:49224
https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:56:1551
https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:88:66996
https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:22:2578
a@https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js:22:1422
promiseReactionJob@[native code]

ReDoc Version: 2.0.0-rc.45 
Commit: aa53416d

This problem appears latest Safari

ojoanalogo commented 3 years ago

Merged, thanks!

Releasing to npm asap