TheOneThatPlaysTooMuch
Explore posts from serversCookie issues
I fixed the problem, and now the code for setting the cookie looks like this: But I still don't understand, why does adding those attributes make it work? which one of them made it work? where can I read more about this? also why is it that the cookie always registered with Expires=session instead of the actual expiration date when I tried to add it?
4 replies
Problem with my api route
Hi! I actually found out why it doesn't work but I still don't know why its like this: when I fetch a full url like "https://google.com" its fine, but when I fetch a relative url like "/api/login" called from a server component, it says it is an invalid url, but when I call it from an island component, its fine.
4 replies
KPCKevin Powell - Community
•Created by TheOneThatPlaysTooMuch on 10/25/2024 in #front-end
Astro components
For example take this hypothetical icon component:
is there a way to make that work?
4 replies