Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I'm looking to render images in Qlik Cloud via URLs. I have imported some extensions that previously allowed me to do this before moving to Qlik Cloud. My hunch is that my content security policy is not properly configured. I have all of my images and corresponding URLs stored within a Github repo that I'd like to be able to reference.
In short my question is - when pasting my Github URL into the origin of the content security policy, it defaults back to "github.com" when clicking save. What do I need to enter in for "origin" for this to work?
Any URL is shortened to just the HOST of the URL since CSP is working on origins and not PATHS
Any schema (http/https) is also removed since it saves characters in the header and the policy will "upgrade" and http to https anyway
Looking at Github it seems any "raw" link is forwarded to raw.githubusercontent.com. Is it this origin that you have added to your CSP?
Notice that you will whitelist any requests to the whole github subdomain if you host your images on github
You should also be able to see any blocked requests in the developer console in your browser
Any URL is shortened to just the HOST of the URL since CSP is working on origins and not PATHS
Any schema (http/https) is also removed since it saves characters in the header and the policy will "upgrade" and http to https anyway
Looking at Github it seems any "raw" link is forwarded to raw.githubusercontent.com. Is it this origin that you have added to your CSP?
Notice that you will whitelist any requests to the whole github subdomain if you host your images on github
You should also be able to see any blocked requests in the developer console in your browser
Changing the origin from github.com to raw.githubusercontent.com worked, thank you!