2023-05-23
Goal
Figure out how to upload / complete my javascript code for Beauty is in the AI of the Beholder
Pomodoro
25 minutes work 5 minutes rest
Notes
- According to ChatGPT, Javascript code can't be uploaded in CKEditor's richtextuploading field because that may leave me vulnerable to XSS Attack.
Results
Overall, I learned a lot today. I decided to go with ChatGPT's Option 3: Content Embedding method of rendering javascript in posts. This means that I'll host the javascript on AWS, then call it from an S3 bucket in an HTML tag in the text editor. When configuring the CORS Permissions, I was required to specify the domains that can access the S3 bucket and was required to add the header of http:// or https://. I don't want to add my SSL Certificate then have to re-configure this later. I spent most of today trying to configure my SSL certificate (something I've been putting off for a while now). It's not working quite yet but I'll try again Thursday at the latest to see if I can get this up and running.