Were am getting a 404 Not Found console error when loading the Accept Hosted form in an iframe on the resource file https://test.authorize.net/payment/scripts/lib/angular.min.js.map.
It is not referenced directly in the response source, but still getting the error in the console. I know it's a map file and probably not a big deal, but I would still like to see it resolved.
04-19-2018 08:47 AM
Hello,
I tested and cannot repro this issue.
Which browser are you using?
Thanks,
Angie
04-19-2018 04:13 PM
Hi @angie, my apologies for the delayed response. I had to pull off of that project for a while.
I get the error in Safari on Mac.
Interestingly, when I tested it in Firefox, I got a Content Security Policy error: "The page's settings blocked the loading of a resource at self ("script-src"). Source: onfocusin attribute on DIV element." followed by the same status 404 error on the attempt to load https://test.authorize.net/payment/scripts/lib/angular.min.js.
Since we don't have any inline JS or onfocusin attributes in our code, I researched and found that Angular can trigger CSP errors unless 'unsafe-inline' is allowed in the CSP script src directive. (See https://stackoverflow.com/questions/50774193/angular-6-content-security-policy-the-page-s-settings-b...).
When I allowed unsafe-inline in the script src CSP directive, both errors went away in Firefox, however Safari still gives the same 404 error on angular.min.js (though no CSP errors).
08-07-2018 03:05 PM - last edited on 08-08-2018 11:01 AM by RichardH