In the case of Spider-Man, you have the fact that Steve Ditko and Stan Lee worked with the Marvel Method and most of the heavy lifting on plotting and characterization was done by Ditko, who wasn't Jewish (he was Slovakian descent, and philosophically an atheist). Yet at the same time, Ditko also worked on Dr. Strange and according to Blake Bell and Romita Sr., Strange was more autobiographical for Steve than Spider-Man was. I mean Stephen Strange lives all alone and is reclusive in his New York apartment but in his mind, or his imagination, he visits great realms and so on, so that's a good autobiographical framing of how Ditko saw his life, living alone but making a living with his imagination and living his study with his reference books and so on. That entire Eternity Saga, has Strange being hounded by this global conspiracy by Mordo and so on, and there's a paranoia there and fear of people and interactions that Ditko probably had.
One of things people forget, and this is something that really happened when Ditko left Spider-Man, is that Spidey was very popular among African-Americans because they related to someone who was on the police and media's s--tlist. Spider-Man's experience of being misunderstood, scapegoated, and hounded by trigger happy cops, and constantly being worried and paranoid about how his actions might cause him trouble and so on, is close to the black experience. The difference is that Spider-Man has superpowers and so survives. When Ditko was around, he actually showed police as competent and capable. Like the Crime Master 2-Parter has the cops arresting the bad guy, the Spider-Man and HT fight with Sandman, ends with the two teen hotheads fighting each other, and Sandman being brought down by cops. The police are ironically shown more critically after Ditko left, ironic because Stan Lee initially had Captain George Stacy embody the duty-driven police officer and noble type, basically a second Uncle Ben. And then Captain Stacy dies, and the cops go apes--t on Spider-Man and then you have the 2-Parter Sam Bullitt story (ASM #91-92) where Spider-man is aligned against white supremacy, and explicitly identified and stated as such. Stan Lee of course introduced more diversity in the Romita era, so you had Robbie Robertson, his son Randy (a campus radical who in the Drug Trilogy got all in Norman Osborn's face), and of course the Prowler, the first Non-Peter to wear the Spider-Man costume..