2016.09.23 09:30 un_red Tattooed Girls & Models
2014.12.14 19:43 wtg_artist Best tattoos
2019.04.20 03:58 evanc1411 HydroHomies
2024.05.14 08:46 north_starz 40 [m4f] ohio / online who knows what's going to happen tomorrow
2024.05.14 08:45 Ivebeenlostbefore 27 [M4F] #Online, GMT+3- Instead of a wall of text you won't read I made an album you can listen to.
2024.05.14 08:44 OppositeEconomics311 Top web designers Chennai
2024.05.14 08:41 FearlessEffort7577 Unveiling the Health Benefits of Ragi: A Nutritional Powerhouse
2024.05.14 08:41 anonymous243215 Comments and Questions: BIble, Origin Bible
2024.05.14 08:40 Lopsided-Half-3951 🎨 Commission Open for Artwork! 🖌️
2024.05.14 08:39 WildTie9063 قیمت تیغ اره
2024.05.14 08:37 WildTie9063 بهترین تیغ اره
2024.05.14 08:36 BillFireCrotchWalton OP gets really mad about a Muslim character in a TV show being gay "for absolutely no reason."
Like what was the point?? He was funny as hell, and I wish we could get deeper into his character, but why make him gay??? I wonder if the season where he made the uncle gay was the season the show got a Golden Globe..
Update: it’s been so fun going back and forth with you queens, please keep going, I love how butt hurt you guys are 😭 but then again I’m sure everything’s numb down there by now 😂
Update #2: I see I hurt some feelings here, let me just say, I hope you have nightmares about what I said, I hope the PreP in your stomach makes you throw up tonight, I hope you cry yourselves to sleep. Thank you for being so entertaining during my workday. Byeee queers 🥹
Why does it bother you if he is gay? And what do you mean by “absolutely no reason”? The fact that he was gay is exactly what made us get a deeper perspective on the character, which is what you say you wanted. He otherwise was just portrayed as a backward, racist, misogynist. So it was important to show another side to him, not just that he’s the “old crazy uncle.” It shows why he is the way he is, the frustration he has felt his entire life, of being gay and having to hide it, and probably being hyper masculine to compensate . Also, I could be wrong, so feel free to clarify, but if you think Uncle Naseem was “funny as hell” because you actually agree with the comments he was making, I have news for you. The show creators definitely do not want us to agree with Uncle Naseem’s viewpoints. We are supposed to be laughing AT him for the things he is saying, not with him. If you find yourself agreeing with Uncle Naseem’s viewpoints and it bothers you that he’s gay, this show might not be for you .[...]
Because its forced nowadays. If it wasn’t mandated by Hollwood, id have more respect for the writers.
Nah, it’s not forced. It made perfect sense. It’s like when you hear about anti-gay pastors and politicians getting caught on Grindr or with prostitutes. There’s no gay mafia telling Ramy what to do, but that’d be funny though lol
It really is forced, but you can pretend to ignore it.
How is it forced? Everyone disagrees with you. To us, it made perfect sense. I think you don’t like it because you’re a conservative who doesn’t like gay acts depicted
Lmfaoo so since everyone disagrees I should just agree with you all? Those echo chambers really smoothed out your brain.
Then articulate a non-smooth brained reason why you think you can’t have gay characters on TV or why this show in particular shouldn’t have one of the cast members be gay Nah there was no point. But thanks for the essay. why did you even ask the question if you didn’t want a real answer? Lmfaoooooo just cause you agree doesn’t make it a “real answer”. well the only answers you agree with are ones that reinforce the opinion you already hold. if you just wanted people to agree with you then why did you ask a question in the first place? That’s not what I said at all but go off sis
.Actually gays are dying out. Everyone is trams these days.. lesbians are unicorns now
I couldn’t disagree more with you. It makes him a more interesting character and puts a new spin on all his past statements and interactions. It makes Naseem more sympathetic because his homophobia is overcompensation and denial. Like they didn’t have to make him a diamond dealer either, but it also makes his antisemitism more interesting being that he has to work with Jews all the time..
Yeah, but he didn’t need to be gay
He didn’t need to be, it just was better for his character. Often times the most homophobic guy is gay. Why does it offend you so much? Do you think being gay is bad?
LMFAOOO such a high school response “oh he doesn’t like gays so he must be gay”. That talking point tracks with your other smooth brained buddies in here
Can you answer the question? Is being gay bad because it’s haram?
People just be gay..
Duh
Are you 13?
Ouch that one really hurt 😞
lol ok kid
thanks man🙂↕️
Dude….this is so mistaken. This isn’t just a DEI move or some shit. You have this really racist and emotionally wrecked uncle in denial and unable to accept his “flaws”. He knows he is for example attracted to men but he cannot accept that that is okay. He finds himself in the sauna getting sucked off because he couldn’t do it anywhere else. And the moment he thinks his niece finds out he goes crazy about it. Curb your homophobia/queerphobia. A show isn’t “infected” by the LGBTQ movement or part of the gay agenda just because it features gay characters. I’m sorry you’re too afraid to live in a world where media isn’t strictly heteronormative.[...]
Oh save the “phobia” garbage lol, they didn’t need to make him gay period
So why did they have to make him straight?
They don’t, but making him gay shouldn’t be his whole storyline, they barely dove into his character and they just make him gay for what?? It just feels lazy.
We’re explaining to you why the reveal that he is secretly gay is essential to his character development yet you completely ignore it and assert that “they didn’t need to make him gay”. It only appears lazy because you do not understand the logic behind it. They constantly show he’s a lonely bitter old man but we just assume it’s cuz he can’t court any women cuz he’s racist. It’s a massive reveal to us that the real reason he can’t court women is because he’s not attracted to them, and he comes from a place where homosexuality is essentially a weakness and so he cannot accept that he’s weak. We see that he was dating a guy for some time but ends up punching him in the face, because for Uncle Naseem the thing he loves is also the thing he hates most about himself. He loves his family but he also hates them. He loves Ramy but he also hates him. He loves men but he also hates being attracted to them. This is what causes the dissonance in his life, because he can’t accept his flaws. The fact that such a hard ass bought a cake for his boyfriend shows how inside he’s still soft and vulnerable like everybody else. You’re gonna keep asking the question. WHY DID THEY HAVE TO MAKE HIM GAY? The truth is that Ramy Youssef didn’t have to tell us Uncle Naseem is gay, but if we didn’t know then we would know even less about Uncle Naseem.
Yeah you’re on crack or poppers if you think I’m reading all this LMFAOOO! I’ll respond with just a simple, No you’re wrong. Thank you😇
.I would disagree. Him being secretly gay explains a lot about Naseem’s character flaws, especially concerning his overtly homophobic behavior. He’s very clearly compensating in multiple areas. He’s trying to put on this persona that doesn’t match who he actually is. I think him being gay is actually pretty crucial to the character and story line. I like that you don’t have any issues with the other characters? Others are not perfect either, yet you only seem to care about this.
Nah
You don’t even have any counter arguments, what’s the point of your post other than showing how incoherent you can be.
Awhhh I’m sorry I’m not engaging with you like you desperately want 🥺. Tell me how your day was buddy
You’re the one who posted this and can’t even hold your own lmao, you must not be that bright
You feel better? I’ve responded 2 times now okay🥺 hope you can sleep now
The butt hurt guy (ironically) who creates a post like this not having any self awareness to realize they are more like Naseem than their brain cells can handle, I almost feel bad
Ouch!!! You hit me with such an original response!!! It’s not like this take wasn’t said a million times 😭. And awhhh you feel bad for me??? Thanks man. I’m arguing with queers from around the globe, it does get tiring. Thanks bestie 🫶🏽
My bad, I had to repeat it because I thought you had some reading comprehension issues. You mentioned on another comment that you didn’t read it because 2 paragraphs was too long for your dumbass.
Nah it’s just, you queers all say the same things in your responses. Why waste my time ya know?
I’m sure Allah is very happy with you right now
Sounds like a bit of casual homophobia, eh?.
My homophobia is anything but casual
Then no answer will make sense to you. People be gay, and so is his uncle. Get over it cause everybody else loved the twist.
Lmfaoooo exactly it’s called an OPINION, you don’t have to agree bud. Btw I bet when you typed up That last sentence you crossed your arms like you did something LMAOOOOOOOOO
Bro did you see your post? You asked the question and here's the answer, you're a homophobe. Funny part is that YOU answered it hahaha
LMFAOOO you did it again!! Pressed 😭
The thought of you seething about gay folk enough to come complain here is hilarious to me lol🌈🌈🌈🌈🌈🌈🌈🌈
Oh no not the rainbows!!!! Please!!! I just ate! Your “pride” gives me bubble guts!
care to explain why you have such a problem with the uncle being gay?.
Because
because what?
Because yuck
yeah I saw that you admitted to being a homophobe already. you’re a trash person with trash beliefs and a shit moral system. not much we can do about that.
LMFAOOO pat yourself on the back please, or get whoever back doors you to do it.
I think you just don’t like that he’s gay. Get over it.
Omg I really needed to hear that, thx sis! 😂
Cool, did you get over it? And not your sis, thx! 😁
Just trying to relate to you queers, I assume your a they/that. How do you guys say sis? ?”This”?
2024.05.14 08:35 fanamana Opinions, opinions ... is The Police's "Ghost in the Machine" a prog album, regardless of intention ?
2024.05.14 08:34 Lopsided-Half-3951 🎨 Commission Open for Artwork! 🖌️
2024.05.14 08:34 Salty-Layer108 افضل شركة تنظيف واجهات بالرياض بخصم 35% اتصل الــأن
2024.05.14 08:32 actechniciankuwait شركة فني تكييف هندي بالكويت افضل شركة تصليح بأسعار معقولة تصليح مكيفات وتركيب وحدات تكييف خدمات منازل جميع مناطق الكويت
2024.05.14 08:31 Best-Journalist-5403 Food's Food. . . Unless it's Tifa
2024.05.14 08:29 GrassEnvironmental74 Stop with the surprised posts on why Michelle is hated here
2024.05.14 08:28 BryggerHeise Numerological day analysis of 14-5–2024 18/9 : Temptation / Wisdom; Intelligence; Communication; Sensitiveness; Reason.
Inspired by Charity - the art of loving the other, like you love yourself, you want to tempt and be tempted by others in order to gain deep wisdom and intelligence today. submitted by BryggerHeise to NumerologyPentagram [link] [comments] 14-5–2024 18/9 : Temptation / Wisdom; Intelligence; Communication; Sensitiveness; Reason. Spirit: 14 Charity Soul: 5 Expansion; Fullness; Inner Motivation; Adventure; Freedom; Order Body: 24 Day and Night; Light and Darkness The sum total of today is 18 Temptation leading to 9: Wisdom. You want to gain wisdom through your spirit’s Charity, your soul’s Expansion, Order, Adventure and Freedom and your physical Ability to go through the Night to see the Light of a new day. Day of the \"Alchemist\" Archetype Pentagram Themes Two major themes challenge you to show wisdom:”Awakening and Leadership” and ”Expansion of Self-Awareness”. Blue 1- Red 44: Axis of Awakening and Leadership: 1(9)-(6)4 Focus/Concentration drives your Awakening, your Leadership. In your awakening and your leadership it will be a constant question: what do I hold on to and what do I let go of? Not taking action and decisions here, will result in Fate falling upon you. The two driving principles are the Healer factor coming from the “God realm to join with the High Priestess of Eros coming from the ‘Ego” realm 19: Healer factor.To heal etymologically means to cure, to save, to make whole, sound and well. With the Healer factor one does not necessarily have to be a doctor in order to make “whole” again. A watchmaker heals too, be it on a different level. It suffices to think holistically and conquer polarity. 64: Eros potency, High Priestess. In the ‘High Priestess of Eros’ lies the Deep Feminine. It is the magnetic, receptive, attractive quality of the High Feminine The balance of the two principles lies in their sum: Messiah factor. It shows you how you must lead and inspire. The ‘Messiah factor’ – is referring to Jesus bringing the message of Love, then dying and resurrecting. In order to understand this message and live it ourselves, the child has to be born in every person, as a symbol for something new. To do this one has to enter one’s own Darkness and emerge ‘reborn’ into the Light of a new day. It is the archetypal journey of the Hero. Blue 2 - Red 5: Axis of Expansion of Self-Awareness: 2(0)-(7)5 Change and Transformation drive your expansion of Self-Awareness. Change - the only constant in the Universe - constantly forces you to go deeper and further in your process of finding out who you are, why you are and what you are. The two driving forces are Immortality coming from the spiritual level to join with Awareness of Vitality; Power coming from the physical level. The intuitive sense of Immortality coming from the spiritual intuitive level seeks to combine with the Awareness of Vitality and Power on the physical level. 20: Immortality 2-0 is the spiritual level in the Pentagram, which lies above Mind-Reason level. It creates this desire to find out what is immortal in us. “What” or “Who” remains after we have died? Is it possible to access that knowledge whilst still being alive? As the 2-0 lies above the level Reason-Mind (3-9) it takes a jump of faith to let go of your mind to find the higher answer to Who or What you are. 75: Awareness of Vitality, Power 5-7 represents the Physical Level in the Pentagram. In the Awareness of Vitality the desire for Fullness, Justice, Holiness and Inner Order wants to develop the Self-Awareness. It is also the number of Dominance, Rule (Power!), Dogmatic Faith and Outer Fame. As such Power does not have to be negative – should someone with this theme live an exemplary life, no power behaviour will be necessary. The balance of these two principles lies in their sum: Descending Prophet. When the two principles come together, you actually bring the spiritual and the physical level together. You will then be a person who fully understands life both on the physical as the metaphysical (spiritual) level and who is capable of transmitting that to others in the language of the people.(Descending Prophet) Levels of awareness You have physical awareness today. Your physical awareness is obtained through the Salt of the Earth and your Awareness of Vitality and Power. The goal is that you intuit your potential of the high priestess of Eros, that you physically manifest the divine connection and that you show feminine perseverance and feminine awakening. Triangles Your physical awareness is further enhanced today with the connection to the 1st principle (“God” realm) and the 6th principle (“Ego” realm). Triangle with 1 (God realm): It calls you to take a conscious decision to focus, concentrate to create Self-aware Insights . It also energizes the ‘Initiator’ in you. Triangle with 6 (Ego realm): It lets you Intuit your Healing Magnetism, lets you Manifest People’s Karma, shows you the Feminine way to go through the Darkness in order to see the light of a new day and lets you Persevere towards Perfection. Note: If your birthday is today, the topics described above are your topics for 2024. Should a baby be born on this day, then today’s themes are the baby’s life-themes. See you (virtually) : (D) Arbeitskreis: 7. Juni Hybrid Zoom - Köln For a full explanation of the numbers and how to read the Pentagram have a look at my website: www.pentalogie.com |
2024.05.14 08:27 BryggerHeise Numerological day analysis of 14-5–2024 18/9 : Temptation / Wisdom; Intelligence; Communication; Sensitiveness; Reason.
Inspired by Charity - the art of loving the other, like you love yourself, you want to tempt and be tempted by others in order to gain deep wisdom and intelligence today. submitted by BryggerHeise to numerology [link] [comments] 14-5–2024 18/9 : Temptation / Wisdom; Intelligence; Communication; Sensitiveness; Reason. Spirit: 14 Charity Soul: 5 Expansion; Fullness; Inner Motivation; Adventure; Freedom; Order Body: 24 Day and Night; Light and Darkness The sum total of today is 18 Temptation leading to 9: Wisdom. You want to gain wisdom through your spirit’s Charity, your soul’s Expansion, Order, Adventure and Freedom and your physical Ability to go through the Night to see the Light of a new day. Day of the \"Alchemist\" Archetype Pentagram Themes Two major themes challenge you to show wisdom:”Awakening and Leadership” and ”Expansion of Self-Awareness”. Blue 1- Red 44: Axis of Awakening and Leadership: 1(9)-(6)4 Focus/Concentration drives your Awakening, your Leadership. In your awakening and your leadership it will be a constant question: what do I hold on to and what do I let go of? Not taking action and decisions here, will result in Fate falling upon you. The two driving principles are the Healer factor coming from the “God realm to join with the High Priestess of Eros coming from the ‘Ego” realm 19: Healer factor.To heal etymologically means to cure, to save, to make whole, sound and well. With the Healer factor one does not necessarily have to be a doctor in order to make “whole” again. A watchmaker heals too, be it on a different level. It suffices to think holistically and conquer polarity. 64: Eros potency, High Priestess. In the ‘High Priestess of Eros’ lies the Deep Feminine. It is the magnetic, receptive, attractive quality of the High Feminine The balance of the two principles lies in their sum: Messiah factor. It shows you how you must lead and inspire. The ‘Messiah factor’ – is referring to Jesus bringing the message of Love, then dying and resurrecting. In order to understand this message and live it ourselves, the child has to be born in every person, as a symbol for something new. To do this one has to enter one’s own Darkness and emerge ‘reborn’ into the Light of a new day. It is the archetypal journey of the Hero. Blue 2 - Red 5: Axis of Expansion of Self-Awareness: 2(0)-(7)5 Change and Transformation drive your expansion of Self-Awareness. Change - the only constant in the Universe - constantly forces you to go deeper and further in your process of finding out who you are, why you are and what you are. The two driving forces are Immortality coming from the spiritual level to join with Awareness of Vitality; Power coming from the physical level. The intuitive sense of Immortality coming from the spiritual intuitive level seeks to combine with the Awareness of Vitality and Power on the physical level. 20: Immortality 2-0 is the spiritual level in the Pentagram, which lies above Mind-Reason level. It creates this desire to find out what is immortal in us. “What” or “Who” remains after we have died? Is it possible to access that knowledge whilst still being alive? As the 2-0 lies above the level Reason-Mind (3-9) it takes a jump of faith to let go of your mind to find the higher answer to Who or What you are. 75: Awareness of Vitality, Power 5-7 represents the Physical Level in the Pentagram. In the Awareness of Vitality the desire for Fullness, Justice, Holiness and Inner Order wants to develop the Self-Awareness. It is also the number of Dominance, Rule (Power!), Dogmatic Faith and Outer Fame. As such Power does not have to be negative – should someone with this theme live an exemplary life, no power behaviour will be necessary. The balance of these two principles lies in their sum: Descending Prophet. When the two principles come together, you actually bring the spiritual and the physical level together. You will then be a person who fully understands life both on the physical as the metaphysical (spiritual) level and who is capable of transmitting that to others in the language of the people.(Descending Prophet) Levels of awareness You have physical awareness today. Your physical awareness is obtained through the Salt of the Earth and your Awareness of Vitality and Power. The goal is that you intuit your potential of the high priestess of Eros, that you physically manifest the divine connection and that you show feminine perseverance and feminine awakening. Triangles Your physical awareness is further enhanced today with the connection to the 1st principle (“God” realm) and the 6th principle (“Ego” realm). Triangle with 1 (God realm): It calls you to take a conscious decision to focus, concentrate to create Self-aware Insights . It also energizes the ‘Initiator’ in you. Triangle with 6 (Ego realm): It lets you Intuit your Healing Magnetism, lets you Manifest People’s Karma, shows you the Feminine way to go through the Darkness in order to see the light of a new day and lets you Persevere towards Perfection. Note: If your birthday is today, the topics described above are your topics for 2024. Should a baby be born on this day, then today’s themes are the baby’s life-themes. See you (virtually) : (D) Arbeitskreis: 7. Juni Hybrid Zoom - Köln For a full explanation of the numbers and how to read the Pentagram have a look at my website: www.pentalogie.com |
2024.05.14 08:25 AutoModerator اغاني عربي أجمـــل اغاني عربي أغنيــة " رغم الوداع " عن الفـــــراق
اغاني عربي أجمـــل اغاني عربي أغنيــة " رغم الوداع "شاهد اجمل اغاني عربي جديدة 2024 , اجمل اغاني عربي عن الفراقحصريا من إيجيبت ستوري استمع الى أغنية رغـم الوداع اجمل اغاني عربي - اغاني فراق شاهد اجمل اغاني الفراق لعــام 2024 أغنية رغم الوداع انا بفتكرلك كل حاجة حلوة فيك, الاغنية التي اشعلت مواقع التواصل الاجتماعي عن قصة حقيقية للفنان مصطفى النفياوي الذي قام بكتابة وتلحين وتوزيع الاغنية . الفنان مصطفى النفياوي اغنية رغم الوداع يوما ما ستسجل من اهم الاغاني العربية في تاريخ الغناء العربي لأنها تحمل مشاعر صادقة وقصة حقيقية ولحن واحساس غير طبيعي. فيما قال متابعي واصدقاء الفنان مصطفى النفياوي ان اغنية رغم الوداع ظلمت اعلاميا لان نجاحها او وصولها للجميع سوف يحرج الجميع في زمن المهرجانات والكلمات الغير مفهومة. كتبت بعض الصحف الالكترونية عن اغنية رغم الوداع وعن الفنان مصطفى النفياوي ان هذي الاغنية رجعتنا للمن الجميل تابع الفنان مصطفى النفياوي على فيس بوك .. اسمع غنية رغم الوداع على ساوند كلاود |
2024.05.14 07:58 Blockchain-TEMU 37625 Word Homework
2024.05.14 07:44 Murky_Egg_5794 CORS not working for app in Docker but work when run on simple dotnet command
var MyAllowSpecificOrigins = "_myAllowSpecificOrigins"; var builder = WebApplication.CreateBuilder(args); builder.Services.AddCors(options => { options.AddPolicy(name: MyAllowSpecificOrigins, policy => { policy.WithOrigins("http://localhost:3000/") .AllowAnyMethod() .AllowAnyHeader(); }); }); builder.Services.AddControllers(); builder.Services.AddHttpClient(); var app = builder.Build(); app.UseHttpsRedirection(); app.UseCors(MyAllowSpecificOrigins); app.UseAuthorization(); app.MapControllers(); app.Run();However, when I implement Docker into my code and run the command docker run -p 5268:80 App to start Docker of my backend, I received an error on my browser:
Access to XMLHttpRequest at 'http://localhost:5268/news' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.I add Krestrel to appsetting.json to change the base service port as below:
"Kestrel": { "EndPoints": { "Http": { "Url": "http://+:80" } } }Here is my Dockerfile:
# Get base SDK Image from Microsoft FROM AS build-env WORKDIR /app ENV ASPNETCORE_URLS=http://+:80 EXPOSE 80 # Copy the csproj and restore all of the nugets COPY *.csproj ./ RUN dotnet restore # Copy the rest of the project files and build out release COPY . ./ RUN dotnet publish -c Release -o out # Generate runtime image FROM WORKDIR /app COPY --from=build-env /app/out . ENTRYPOINT [ "dotnet", "backend.dll" ]Here is my launchSettings.json file's content:
{ "_comment": "For devEnv: http://localhost:5268 and for proEnv: https://kcurr-backend.onrender.com", "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:19096", "sslPort": 44358 } }, "profiles": { "http": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, "applicationUrl": "http://localhost:5268", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "https": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, "applicationUrl": "https://localhost:7217;http://localhost:5268", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } } }, }I did some research on this and found that I need to use NGINX to fixed it, so I add nginx.conf and tell docker to read nginx.config as well as below:
# Read NGIXN config to fixed CORS policy blocking FROM nginx:alpine WORKDIR /etc/nginx COPY ./nginx.conf ./conf.d/default.conf EXPOSE 80 ENTRYPOINT [ "nginx" ] CMD [ "-g", "daemon off;" ]mcr.microsoft.com/dotnet/sdk:7.0mcr.microsoft.com/dotnet/sdk:7.0here is nginx.conf:
upstream api { # Could be host.docker.internal - Docker for Mac/Windows - the host itself # Could be your API in a appropriate domain # Could be other container in the same network, like container_name:port server 5268:80; } server { listen 80; server_name localhost; location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Max-Age' 1728000; add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent, X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range'; add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; add_header 'Content-Type' 'application/json'; add_header 'Content-Length' 0; return 204; } add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent, X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range'; add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; proxy_pass http://api/; } }when I build docker by running: docker build -t kcurr-backend . and then running command docker run -p 5268:80 kcurr-backend, no error shown on console as below:
2024/05/14 05:58:36 [notice] 1#1: using the "epoll" event method 2024/05/14 05:58:36 [notice] 1#1: nginx/1.25.5 2024/05/14 05:58:36 [notice] 1#1: built by gcc 13.2.1 20231014 (Alpine 13.2.1_git20231014) 2024/05/14 05:58:36 [notice] 1#1: OS: Linux 6.6.22-linuxkit 2024/05/14 05:58:36 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 2024/05/14 05:58:36 [notice] 1#1: start worker processes 2024/05/14 05:58:36 [notice] 1#1: start worker process 7 2024/05/14 05:58:36 [notice] 1#1: start worker process 8 2024/05/14 05:58:36 [notice] 1#1: start worker process 9 2024/05/14 05:58:36 [notice] 1#1: start worker process 10 2024/05/14 05:58:36 [notice] 1#1: start worker process 11 2024/05/14 05:58:36 [notice] 1#1: start worker process 12 2024/05/14 05:58:36 [notice] 1#1: start worker process 13 2024/05/14 05:58:36 [notice] 1#1: start worker process 14However, I still cannot connect my frontend to my backend and received the same error on the browser as before, I also received a new error on the console as below :
2024/05/14 05:58:42 [error] 8#8: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.65.1, server: localhost, request: "GET /curcurrency-country HTTP/1.1", upstream: "http://0.0.20.148:80/curcurrency-country", host: "localhost:5268", referrer: "http://localhost:3000/" 2024/05/14 05:58:42 [error] 7#7: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.65.1, server: localhost, request: "POST /news HTTP/1.1", upstream: "http://0.0.20.148:80/news", host: "localhost:5268", referrer: "http://localhost:3000/" 192.168.65.1 - - [14/May/2024:05:58:42 +0000] "POST /news HTTP/1.1" 502 559 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" "-" 192.168.65.1 - - [14/May/2024:05:58:42 +0000] "GET /curcurrency-country HTTP/1.1" 502 559 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" "-"Does anyone know what I should do to fix the CORS policy blocking for my dockerized backend?
2024.05.14 07:38 Murky_Egg_5794 CORS not working for app in Docker but work when run on simple dotnet command
var MyAllowSpecificOrigins = "_myAllowSpecificOrigins"; var builder = WebApplication.CreateBuilder(args); builder.Services.AddCors(options => { options.AddPolicy(name: MyAllowSpecificOrigins, policy => { policy.WithOrigins("http://localhost:3000/") .AllowAnyMethod() .AllowAnyHeader(); }); }); builder.Services.AddControllers(); builder.Services.AddHttpClient(); var app = builder.Build(); app.UseHttpsRedirection(); app.UseCors(MyAllowSpecificOrigins); app.UseAuthorization(); app.MapControllers(); app.Run();However, when I implement Docker into my code and run the command docker run -p 5268:80 kcurr-backend to start Docker of my backend, I received an error on my browser:
Access to XMLHttpRequest at 'http://localhost:5268/news' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.I add Krestrel to appsetting.json to change the base service port as below:
"Kestrel": { "EndPoints": { "Http": { "Url": "http://+:80" } } }Here is my Dockerfile:
# Get base SDK Image from Microsoft FROM AS build-env WORKDIR /app ENV ASPNETCORE_URLS=http://+:80 EXPOSE 80 # Copy the csproj and restore all of the nugets COPY *.csproj ./ RUN dotnet restore # Copy the rest of the project files and build out release COPY . ./ RUN dotnet publish -c Release -o out # Generate runtime image FROM WORKDIR /app COPY --from=build-env /app/out . ENTRYPOINT [ "dotnet", "backend.dll" ]mcr.microsoft.com/dotnet/sdk:7.0mcr.microsoft.com/dotnet/sdk:7.0Here is my launchSettings.json file's content:
{ "_comment": "For devEnv: http://localhost:5268 and for proEnv: https://kcurr-backend.onrender.com", "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:19096", "sslPort": 44358 } }, "profiles": { "http": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, "applicationUrl": "http://localhost:5268", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "https": { "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, "applicationUrl": "https://localhost:7217;http://localhost:5268", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } } }, }I did some research on this and found that I need to use NGINX to fixed it, so I add nginx.conf and tell docker to read nginx.config as well as below:
# Get base SDK Image from Microsoft FROM AS build-env WORKDIR /app ENV ASPNETCORE_URLS=http://+:80 EXPOSE 80 # Copy the csproj and restore all of the nugets COPY *.csproj ./ RUN dotnet restore # Copy the rest of the project files and build out release COPY . ./ RUN dotnet publish -c Release -o out # Generate runtime image FROM WORKDIR /app COPY --from=build-env /app/out . ENTRYPOINT [ "dotnet", "backend.dll", "--launch-profile Prod" ] # Read NGIXN config to fixed CORS policy blocking FROM nginx:alpine WORKDIR /etc/nginx COPY ./nginx.conf ./conf.d/default.conf EXPOSE 80 ENTRYPOINT [ "nginx" ] CMD [ "-g", "daemon off;" ]here is nginx.conf:
upstream api { # Could be host.docker.internal - Docker for Mac/Windows - the host itself # Could be your API in a appropriate domain # Could be other container in the same network, like container_name:port server 5268:80; } server { listen 80; server_name localhost; location / { if ($request_method = 'OPTIONS') { add_header 'Access-Control-Max-Age' 1728000; add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent, X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range'; add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; add_header 'Content-Type' 'application/json'; add_header 'Content-Length' 0; return 204; } add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Headers' 'Authorization,Accept,Origin,DNT,X-CustomHeader,Keep-Alive,User-Agent, X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range'; add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH'; proxy_pass http://api/; } }when I build docker by running: docker build -t kcurr-backend . and then running command docker run -p 5268:80 kcurr-backend, no error shown on console as below:
2024/05/14 05:58:36 [notice] 1#1: using the "epoll" event method 2024/05/14 05:58:36 [notice] 1#1: nginx/1.25.5 2024/05/14 05:58:36 [notice] 1#1: built by gcc 13.2.1 20231014 (Alpine 13.2.1_git20231014) 2024/05/14 05:58:36 [notice] 1#1: OS: Linux 6.6.22-linuxkit 2024/05/14 05:58:36 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 2024/05/14 05:58:36 [notice] 1#1: start worker processes 2024/05/14 05:58:36 [notice] 1#1: start worker process 7 2024/05/14 05:58:36 [notice] 1#1: start worker process 8 2024/05/14 05:58:36 [notice] 1#1: start worker process 9 2024/05/14 05:58:36 [notice] 1#1: start worker process 10 2024/05/14 05:58:36 [notice] 1#1: start worker process 11 2024/05/14 05:58:36 [notice] 1#1: start worker process 12 2024/05/14 05:58:36 [notice] 1#1: start worker process 13 2024/05/14 05:58:36 [notice] 1#1: start worker process 14However, I still cannot connect my frontend to my backend and received the same error on browser as before, I also received a new error on the console as below :
2024/05/14 05:58:42 [error] 8#8: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.65.1, server: localhost, request: "GET /curcurrency-country HTTP/1.1", upstream: "http://0.0.20.148:80/curcurrency-country", host: "localhost:5268", referrer: "http://localhost:3000/" 2024/05/14 05:58:42 [error] 7#7: *2 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.65.1, server: localhost, request: "POST /news HTTP/1.1", upstream: "http://0.0.20.148:80/news", host: "localhost:5268", referrer: "http://localhost:3000/" 192.168.65.1 - - [14/May/2024:05:58:42 +0000] "POST /news HTTP/1.1" 502 559 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" "-" 192.168.65.1 - - [14/May/2024:05:58:42 +0000] "GET /curcurrency-country HTTP/1.1" 502 559 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" "-"Does anyone know what I should do to fix the CORS policy blocking for my dockerized backend?
2024.05.14 07:38 astro-signature URANUS - ASCENDANT In Square Aspect - Transit and Progress Chart