June 17, 2024, 3 p.m. | WavePlay Staff

DEV Community dev.to

If you're building a Discord Activity, you may encounter issues with Content Security Policy (CSP) restrictions.


CSP is a security feature that helps prevent cross-site scripting attacks by restricting the resources a web page can load. However, it can sometimes interfere with loading external resources like fonts or media in your activity.



The recommended fix is to use Discord's URL Mapping feature to rewrite URLs. However, this method has limitations and may not work in all cases.





Proxies to …

attacks building can content security cross-site csp discord external feature issues javascript may node node.js page policy prevent programming proxy resources restrictions scripting security security policy using web

Information Technology Specialist I: Windows Engineer

@ Los Angeles County Employees Retirement Association (LACERA) | Pasadena, California

Information Technology Specialist I, LACERA: Information Security Engineer

@ Los Angeles County Employees Retirement Association (LACERA) | Pasadena, CA

Vice President, Controls Design & Development-7

@ State Street | Quincy, Massachusetts

Vice President, Controls Design & Development-5

@ State Street | Quincy, Massachusetts

Data Scientist & AI Prompt Engineer

@ Varonis | Israel

Contractor

@ Birlasoft | INDIA - MUMBAI - BIRLASOFT OFFICE, IN