Skip to content

Commit

Permalink
Remove unsafe-eval from debug page and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Jan 3, 2018
1 parent 315879c commit ba24af8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debug/csp.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Mapbox GL JS debug page</title>
<meta http-equiv="Content-Security-Policy" content="worker-src blob: ; img-src data: blob: ; script-src http: 'nonce-dummy' 'unsafe-eval'; connect-src https://*.tiles.mapbox.com https://api.mapbox.com">
<meta http-equiv="Content-Security-Policy" content="worker-src blob: ; img-src data: blob: ; script-src http: 'nonce-dummy'; connect-src https://*.tiles.mapbox.com https://api.mapbox.com">
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel='stylesheet' href='/dist/mapbox-gl.css' />
Expand Down
2 changes: 1 addition & 1 deletion docs/components/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default class extends React.Component {
a <a href='https://developer.mozilla.org/en-US/docs/Web/Security/CSP'>Content Security Policy (CSP)</a> to
specify security policies for your website. If you do, Mapbox GL JS requires the following CSP
directives:</p>
<pre><code>{`child-src blob: ;\nimg-src data: blob: ;\nscript-src 'unsafe-eval' ;`}</code></pre>
<pre><code>{`child-src blob: ;\nimg-src data: blob: ;`}</code></pre>

<p>Requesting styles from Mapbox or other services will require additional
directives. For Mapbox, you can use this <code>connect-src</code> directive:</p>
Expand Down

0 comments on commit ba24af8

Please sign in to comment.