I am new to Play Framework and i was attempting to put the jquery CDN to my play application. Every time I put any kind of CDN into my view files (scala.html extension) i keep getting a CSP error saying:
Refused to load the script
'https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js' because
it violates the following Content Security Policy directive: "default-src
'self'". Note that 'script-src' was not explicitly set, so 'default-src' is
used as a fallback.
I referred How does Content Security Policy work? and added the meta tag elements accordingly and also referred the http://content-security-policy.com/
but still could not get it to work.
I would really appriciate if anyone could help me out. Thankyou in advance!