Chrome Error message "unsafe-eval" on Iframe

Moderator: Unholy

Chrome Error message "unsafe-eval" on Iframe

Postby x-dream » Mon Sep 14, 2020 9:07 pm

Hi there,
I am in an angular project.
I get this error on Chrome:

[Report Only] Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' http://www.waze.com web-assets.waze.com http://www.youtube.com http://www.google.com http://www.gstatic.com http://www.googleadservices.com http://www.googletagmanager.com http://www.google-analytics.com googleads.g.doubleclick.net s.ytimg.com".

My HTML:
Code: Select all
<div class="heading">
    <h3><a href="https://www.waze.com/ul?ll=31.84532158%2C34.70176792&navigate=yes&zoom=17">לחץ לניווט: העוגן 6, איזור התעשיה הצפוני - אשדוד</a></h3>
  </div>
  <div class="map-responsive">
      <iframe src="https://embed.waze.com/he/iframe?zoom=17&lat=31.845244&lon=34.701884&ct=livemap&pin=1&desc=1" allowfullscreen width="1150" height="540"></iframe>
  </div>


I saw https://stackoverflow.com/questions/21130400/content-security-policy-in-chrome-app Answer. But I couldn't figure if this is my case and Where should I enter the record.

Thanks for helping me out.
x-dream
 
Posts: 116
Joined: Thu Aug 06, 2009 11:11 am
Has thanked: 0 time
Been thanked: 0 time

Return to Waze Developers Community

Who is online

Users browsing this forum: No registered users