๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’š ๊ฐœ๋ฐœ98

SOP ์™€ CORS ๊ฐ„๋‹จ ์„ค๋ช… SOP(Same-Origin Policy) CORS ๋ฅผ ์„ค๋ช…ํ•˜๊ธฐ์— ์•ž์„œ ๋ฐ˜๋Œ€(?) ๊ฐœ๋…์ธ SOP(Same-Origin Policy)๊ฐ€ ์žˆ๋‹ค. ๋™์ผํ•œ ์ถœ์ฒ˜์—์„œ ์˜จ ์š”์ฒญ๋งŒ ์ฒ˜๋ฆฌํ•˜๋Š” ๊ฒƒ์ด๋‹ค. ๊ฐœ๋ฐœ์ž ๊ด€์ ์—์„œ ๋ณด๋ฉด ์ด๋Š” ํ”„๋ก ํŠธ์—์„œ ์ผ์–ด๋‚˜๋Š” ๋ฌธ์ œ. ๋ธŒ๋ผ์šฐ์ €์˜ ๋ฌธ์ œ์ด๋‹ค. (๋ณด์•ˆ์ด ๋ถ™์œผ๋ฉด ๊ฐœ๋ฐœ์ž๋Š” ๋ถˆํŽธํ•ด์ง€๊ฒŒ ๋œ๋‹ค.. ํ•˜ํ•˜) ์‚ฌ์‹ค ๋ฌธ์ œ๋Š” ์•„๋‹ˆ๊ณ , ๋ธŒ๋ผ์šฐ์ € ๋‹จ์—์„œ ์‚ฌ์šฉ์ž๋ฅผ ๋ณดํ˜ธํ•˜๋Š” ๊ฒƒ์ด๋ผ๊ณ  ์„ค๋ช…ํ•  ์ˆ˜ ์žˆ๊ฒ ๋‹ค. ์˜ˆ๋ฅผ ๋“ค๋ฉด ๋‚ด๊ฐ€ ์‚ฌ์ดํŠธ A์— ๋‚ด ๋กœ๊ทธ์ธ ์ •๋ณด(์ธ์ฆ)๋ฅผ ๊ธฐ์–ตํ•˜๋„๋ก ํ–ˆ๋‹ค. ์•…์˜์ ์ธ ์‚ฌ์ดํŠธ B๋Š” ์™ธ๊ด€์ƒ์œผ๋กœ ์‚ฌ์ดํŠธ A์™€ ์ฐจ์ด์ ์ด ์—†์–ด ๋ณด์ธ๋‹ค. ์•…์˜์ ์ธ ์‚ฌ์ดํŠธ B์—์„œ ์‚ฌ์ดํŠธ A์— ์žˆ๋Š” ๋‚ด ์ธ์ฆ ์ •๋ณด๋ฅผ ํƒˆ์ทจํ•ด ๋‚˜์˜ ์ธ์ฆ์ •๋ณด๋ฅผ ์ด์šฉํ•ด ๋‚ด๊ฐ€ ์‚ฌ์ดํŠธ B์— ๋กœ๊ทธ์ธ์„ ํ•˜๊ฒŒ ๋˜๋ฉด ํฐ ํ”ผํ•ด๋กœ ์ด์–ด์งˆ ์ˆ˜ ์žˆ๋‹ค. ๋”ฐ๋ผ์„œ ๋ธŒ๋ผ์šฐ์ €์—์„œ๋Š” .. 2021. 12. 22.
[iOS. Objective-C] NSString null ์ฒดํฌ / NSLog, printf ๋กœ ์ถœ๋ ฅ ์•„๋ž˜ ์˜ˆ์ œ์—์„œ ๋‘ ๊ฐ€์ง€๋ฅผ ์ •๋ฆฌํ–ˆ๋‹ค. 1. NSString ์˜ ๊ฐ’์ด null ์ธ ๊ฒฝ์šฐ๋ฅผ ์ฒดํฌ. nsStr ์ด๋ผ๋Š” ๋ณ€์ˆ˜์˜ ์ž๋ฃŒํ˜•์ด null ์ธ์ง€ ํ˜น์€ nsStr ์˜ ๊ธธ์ด๊ฐ€ 0 ์ธ์ง€ ์ฒดํฌํ•œ๋‹ค. 2. NSString ์ž๋ฃŒํ˜•์˜ ๋ณ€์ˆ˜ nsStr ์„ NSLog ์™€ printf๋กœ ์ถœ๋ ฅํ•œ๋‹ค. NSString *nsStr = nil; nsStr = @"This Vlaue is not null";// ์ด ๋ผ์ธ์ด ์—†์–ด์ง€๋ฉด else ๋กœ ๋ถ„๊ธฐ๋œ๋‹ค. if (nsStr == (id)[NSNull null] || nsStr.length == 0 ) { NSLog(@"This Value is null\n"); printf("This Value is null\n"); } else { NSLog(@"%@\n", nsStr); printf(.. 2021. 12. 21.
443 ํฌํŠธ์™€ 8443 ํฌํŠธ์˜ ์ฐจ์ด 443 ํฌํŠธ๋ž€? 443 ํฌํŠธ๋Š” HTTPS ์„œ๋น„์Šค์— ์‚ฌ์šฉ๋œ๋‹ค. HTTPS๋Š” HTTP์— ์•”ํ˜ธํ™”๋ฅผ ํ•˜๊ณ  ๋ณด์•ˆ ํฌํŠธ๋กœ ์ „์†ก์„ ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•œ๋‹ค. ๋‹ค๋ฅธ ์‚ฌ๋žŒ์ด ํŒจํ‚ท์„ ์บก์ฒ˜ํ•ด ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๋„๋ก ์€ํ–‰์ด๋‚˜ ๋ณด์•ˆ, ์‡ผํ•‘ ๋“ฑ์—์„œ ์ •๋ณด ๊ตํ™˜ ๋“ฑ์— ์•ˆ์ •ํ•œ ์ „์†ก์„ ๋ณด์žฅํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ ๋œ๋‹ค. (HTTPS ์‚ฌ์šฉ์„ ์œ„ํ•œ well-known port : 443) 0~1023 -> well-known port ์ด๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด 22๋ฒˆ tcp๋Š” ssh ๋กœ ์‚ฌ์šฉ๋œ๋‹ค. 8443 ํฌํŠธ๋ž€? 8443 ํฌํŠธ๋Š” ํ†ฐ์บฃ์˜ SSL ๋””ํดํŠธ ํฌํŠธ๋กœ ์‚ฌ์šฉ๋œ๋‹ค.๊ธฐ๋ณธ ์„ค์ • ํŒŒ์ผ์— 8443์œผ๋กœ ์„ค์ • ๋˜์–ด ์žˆ๋‹ค. (ํ†ฐ์บฃ์—์„œ ์ง€์ •ํ•œ registered port) Registered Port ๋Š” 1024๋ถ€ํ„ฐ 49151 ๊นŒ์ง€ ์žˆ๋‹ค. 443 vs 8443 ํ†ฐ์บฃ์— 8443์œผ.. 2021. 12. 9.
[์•ˆ๋“œ๋กœ์ด๋“œ] ์˜ค๋ฅ˜ ํ•ด๊ฒฐ The minCompileSdk (31) specified in adependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) ๊ทธ๋ฆฌ๊ณ  ๋ฉ”ํƒ€๋ฐ์ดํ„ฐ ์‹ค์Šต ์˜ค๋ฅ˜ ๋‚ด์šฉ : One or more issues found when checking AAR metadata values: The minCompileSdk (31) specified in a dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties) is greater than this module's compileSdkVersion (android-27). Dependency: androidx.appcompat:appcompat:1.4.0. AAR metadata file: C:\Users\shin\.gradle\caches\transforms-3\๋ญ”๊ฐ€์— ๋Œ€ํ•œ ํ•ด์‹œ๊ฐ’ ๊ฐ™์Œ... ์•ฑ ์•„์ด๋””์— ๋Œ€ํ•œ ํ•ด์‹œ๊ฐ’์ธ๊ฐ€?\t.. 2021. 11. 29.