We will be at OWASP APPSEC EUROPE 2017 - Belfast! Let’s talk!MORE INFO

Help Center

Get to know more about our API, Code Annotations and Code Transformations

Source Maps Web Application Usage

By default source maps are disabled. Please use this feature with care, sending the Source Maps to production will expose your original code to everyone.

Enabling Source Maps

To enable source maps in Jscrambler’s Web Application you will need to:

1. Go to the Web Application’s Dashboard;
2. Click on View App button on your application;

view app

3. On the top right corner you will find a cogwheel under Application Settings, click on it and then click on Source maps checkbox;

source-maps checkbox

From now on that option will be active for all protection requests you do for that specific application (until you turn it back off).

Options

Source maps will include the original source code embedded in the source map file. This is the default behavior and the only behavior available in the Web Application. If you wish the source maps not to include the source code, please consider using our API. You can find more information about using Jscrambler’s API and source maps here.

Downloading the Source Maps

1. Go to the Web Application’s Dashboard;
2. Click on See Protection History link on your application

view app

3. In the Application Protections table click on the desired protection’s id to open the protection’s details

view app

4. Finally, on the top right click on Download Source Maps

download source maps

Please keep in mind that to load Source maps in the Browser’s Dev tools you’ll have to automate this last step: Including Source Maps with your Javascript files.

Merging other Source Maps with Jscrambler’s

In order to merge source maps from previous compilations (e.g., Webpack bundling, TypeScript transpilation, etc) with Jscrambler’s, upload the source maps alongside with your JavaScript source code. You can do so by clicking the Add button on the top left corner of your application’s file tree.

upload file

After uploading both files a map icon will show up indicating that there is a source map file associated with the file.

file with source-map associated

Then you just need to protect your application and download the source maps as explained in the previous section.