• ulterno@programming.dev
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 day ago

    I remember there being a CORS problem in a team project.
    Perhaps I should ask the webdev at the time whether they had made that thing with AI or they really just made the whole thing themselves and somehow overlooked CORS.

    • ClassifiedPancake@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      ·
      16 hours ago

      CORS has always been a problem. I keep having to remind the backend team to send proper headers. They say it works in curl so why not in the browser. It’s not very intuitive.

    • w3dd1e@lemmy.zip
      link
      fedilink
      arrow-up
      4
      ·
      20 hours ago

      When I was learning, CORS was a pain in my ass. It’s not taught well, and often glossed over.

        • w3dd1e@lemmy.zip
          link
          fedilink
          arrow-up
          1
          ·
          9 hours ago

          It could be either way, I haven’t tried “vibe coding” but I imagine you’re right if you don’t tell it to explicitly deal with CORS, AI probably doesn’t

          • ulterno@programming.dev
            link
            fedilink
            English
            arrow-up
            0
            ·
            8 hours ago

            Yeah, I guess the CORS problem would have been fixed by now (by feeding CORS examples codes of course) by at least the dev targetted brands.

      • ulterno@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        21 hours ago

        Hehe yeah, security in general has been an afterthought in the computing space.
        And it makes sense. You first make something possible, then restrict it for whatever cases you don’t want it happening. The latter is supposed to be easier.