Need to know where is CSP button

Hi there, I am not developer and I am a trainee. When I tried to build webpage that enable to post data from html to google sheet. I already included the api key and sheet id in my javascript code but data was not posted to google sheet. After searching I understood that I need to include my api in CSP allowlist. I could not find where is the CSP button to add the origin of the Google Sheets API to the allowlist.

that’s done within your app, by sending an HTTP header with the response. see this guide

although can you describe how you came to the conclusion that you needed to change your CSP? it you weren’t aware of the concept of CSP, then you possibly wouldn’t have had a header being sent, which would mean your app would run unconstrained. maybe you’re using a general security plugin that sets a CSP header by default?

1 Like