You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error when saving auth template with CDN links #2256
When adding the bootstrap CDN style link as provided below in an email template the server experiences an "Internal Server Error" when trying to save the template. When refreshing the page the template is updated though.
To Reproduce
Go to the Authentication Templates page
Add the following element to one of the templates: <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
Click save
There will either be an "internal server error" in the console or/and a notification would alert you that there was an error.
Expected behavior
I expected the template to save successfully or indicate what the problem in the template was like "you can't add CDN links", "Your template can't be parsed/saved because it contains these letters" or just "invalid template". Something like that.
Screenshots
System information
I am using the web interface on Chrome (Version 91.0.4472.114 (Official Build) (64-bit)) on a Linux computer
Additional context
Don't know what else to add but hope this information will help. I guess the real question can we add CDN links like these in our template to help style the emails?
Activity
MildTomato commentedon May 3, 2022
Hey @GeneralTyres - sorry for late response.
I just tested this just now and it seems to work now.
Please reopen this issue if your still experiencing the same problem
feat: update @supabase/*-js libraries to v2.104.0 (#45047)