<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by UATeam on Medium]]></title>
        <description><![CDATA[Stories by UATeam on Medium]]></description>
        <link>https://medium.com/@aleksej.gudkov?source=rss-5d0e6f5130f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*f2q3cAsQ5gFpksPdzt7-Ew.jpeg</url>
            <title>Stories by UATeam on Medium</title>
            <link>https://medium.com/@aleksej.gudkov?source=rss-5d0e6f5130f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 05:43:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aleksej.gudkov/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[PlayStation Plus September 2026 Games: Sniper Elite Resistance, MLB The Show 26, Wobbly Life and…]]></title>
            <link>https://medium.com/@aleksej.gudkov/playstation-plus-september-2026-games-sniper-elite-resistance-mlb-the-show-26-wobbly-life-and-010b550488e6?source=rss-5d0e6f5130f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/010b550488e6</guid>
            <dc:creator><![CDATA[UATeam]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 21:04:00 GMT</pubDate>
            <atom:updated>2026-08-26T21:06:05.124Z</atom:updated>
            <content:encoded><![CDATA[<h3>PlayStation Plus September 2026 Games: Sniper Elite Resistance, MLB The Show 26, Wobbly Life and Chained Echoes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*UQya0Xhm1P2j4fs6kmVEHg.png" /></figure><p>Sony has officially revealed the <strong>PlayStation Plus Monthly Games for September 2026</strong>, and subscribers are getting four titles covering tactical action, baseball, open-world co-op and classic-style role-playing.</p><p>The <strong>PS Plus September 2026 games</strong> are <strong>Sniper Elite: Resistance, MLB The Show 26, Wobbly Life and Chained Echoes</strong>.</p><p>All four games will become available to PlayStation Plus members on <strong>September 1, 2026</strong>, and will remain available until <strong>October 5, 2026</strong>. The lineup includes games for both PS5 and PS4, although not every title supports both consoles.</p><h3>PlayStation Plus September 2026 Games List</h3><p>Here is the complete September lineup:</p><p>GamePlatformSniper Elite: ResistancePS5, PS4MLB The Show 26PS5Wobbly LifePS5, PS4Chained EchoesPS4</p><p><strong>Available:</strong> September 1, 2026<br><strong>Last day available:</strong> October 5, 2026</p><p>This month’s selection is unusually varied. Players looking for a serious action game can jump into Sniper Elite: Resistance, sports fans get MLB The Show 26, families and co-op players have Wobbly Life, while RPG fans can explore the pixel-art world of Chained Echoes.</p><h3>Sniper Elite: Resistance — PS5 and PS4</h3><p>The biggest action game in the September PS Plus lineup is <strong>Sniper Elite: Resistance</strong>.</p><p>Set in occupied France during World War II, Resistance tells a story that takes place alongside the events of Sniper Elite 5. The game combines long-range shooting with stealth, exploration and tactical third-person combat.</p><p>As expected from the series, carefully planning a shot can be just as important as pulling the trigger. Players can study enemy positions, find alternative routes through missions and choose whether to remain hidden or engage enemies directly.</p><p>The campaign can also be played cooperatively, giving two players the opportunity to work through missions together.</p><p>Another returning feature is <strong>Axis Invasion</strong>, where another player can enter a campaign as an enemy sniper. Instead of fighting predictable AI alone, you may suddenly find yourself being hunted by a real opponent.</p><p>For players who prefer competitive multiplayer, Resistance also offers online battles supporting up to 16 players. A separate Survival mode allows groups of up to four players to fight against waves of enemies.</p><h3>Who should play Sniper Elite: Resistance?</h3><p>This is probably the first September PS Plus game to try if you enjoy:</p><ul><li>stealth games</li><li>tactical shooters</li><li>sniper gameplay</li><li>World War II settings</li><li>online co-op</li><li>competitive multiplayer</li></ul><p>It is also one of two September games available natively on both PS4 and PS5.</p><h3>MLB The Show 26 — PS5</h3><p>Baseball fans have a major addition this month with <strong>MLB The Show 26</strong> joining PlayStation Plus on PS5.</p><p>Sony’s latest baseball game offers several ways to build a career or create a custom team.</p><p>In <strong>Road to the Show</strong>, players can develop their character and work toward reaching Major League Baseball. MLB The Show 26 expands the career experience with the MLB Draft Combine and additional college teams.</p><p>Players who prefer collecting and building squads can head into <strong>Diamond Dynasty</strong>, which brings together baseball stars from different eras.</p><p>The game also includes updated presentation, stadium effects and gameplay improvements designed to push the series closer to the atmosphere of a real baseball broadcast.</p><h3>PlayStation Plus MLB The Show 26 Jump Start Bundle</h3><p>PlayStation Plus members will also have access to a special <strong>MLB The Show 26 Jump Start Bundle</strong>.</p><p>The bundle includes:</p><ul><li>5 The Show Packs</li><li>1 Equipment Pack</li><li>1 Jumpstart Choice Pack</li></ul><p>These items can help players begin building their Diamond Dynasty roster or customize their Road to the Show character.</p><p>The Jump Start Bundle will be available from <strong>September 1 until October 6, 2026</strong>. An internet connection is required for certain MLB The Show 26 features.</p><h3>Wobbly Life — PS5 and PS4</h3><p>September isn’t only about snipers and baseball.</p><p><strong>Wobbly Life</strong> offers something completely different: a lighthearted open-world sandbox built around exploration, experimentation and multiplayer fun.</p><p>You can explore Wobbly Island alone or bring friends along, with support for up to four players through online multiplayer or local split-screen.</p><p>The world is packed with interactive objects, activities, missions and secrets. Players can complete challenges, explore caves, visit different areas of the island and unlock rewards while discovering what the sandbox has to offer.</p><p>There is also an Arcade mode featuring several additional activities, including <strong>Hide &amp; Seek, Wobble Run and Trash Zone</strong>, alongside sandbox-style gameplay options.</p><h3>Is Wobbly Life multiplayer?</h3><p>Yes. <strong>Wobbly Life supports up to four players</strong>, and it can be played both online and using local split-screen multiplayer.</p><p>That makes it an especially interesting addition for households looking for a PlayStation Plus game that can be enjoyed together on the same console.</p><h3>Chained Echoes — PS4</h3><p>The fourth game arriving with PlayStation Plus in September is <strong>Chained Echoes</strong>, a single-player RPG inspired by the 16-bit era.</p><p>The adventure takes place in <strong>Valandis</strong>, a continent caught in conflict between three kingdoms.</p><p>Instead of focusing solely on traditional medieval fantasy, Chained Echoes combines swords and magic with mechanical suits, giving its world a distinctive mixture of classic fantasy and technology.</p><p>Players travel through numerous environments while following a story centered on a group of heroes attempting to bring an end to the conflict.</p><p>For anyone who grew up playing classic Japanese-style RPGs — or simply enjoys modern games inspired by them — Chained Echoes gives September’s PS Plus lineup a very different experience from the other three games.</p><h3>Which September 2026 PS Plus Game Should You Play First?</h3><p>The answer depends heavily on what kind of games you enjoy.</p><p><strong>Start with Sniper Elite: Resistance</strong> if you want the most action-focused experience. Its mixture of campaign missions, co-op, invasion mechanics and multiplayer makes it a strong option for players who enjoy tactical shooters.</p><p><strong>Try MLB The Show 26</strong> if sports games are your priority. Its career and team-building modes can provide plenty to work toward beyond individual matches.</p><p><strong>Download Wobbly Life</strong> if you want something casual to play with friends or family. Local split-screen support gives it an advantage for couch multiplayer.</p><p><strong>Choose Chained Echoes</strong> if you would rather settle into a story-driven single-player adventure. Its retro visual style and RPG mechanics make it the most traditional solo experience in September’s lineup.</p><p>The variety may ultimately be the strongest part of the September selection: the four games target very different audiences rather than competing for the same type of player.</p><h3>Don’t Forget the August 2026 PS Plus Games</h3><p>Before September’s games arrive, subscribers still have time to claim the August lineup.</p><p>The <strong>August 2026 PlayStation Plus Monthly Games</strong> are:</p><ul><li>Dying Light 2 Stay Human: Reloaded Edition</li><li>Big Walk</li><li>Signalis</li></ul><p>Sony says members have until <strong>August 31, 2026</strong> to add these titles to their library.</p><p>If any of them interest you, it is worth claiming them before September’s lineup replaces them.</p><h3>When Do the September 2026 PS Plus Games Come Out?</h3><p>The September PlayStation Plus Monthly Games become available on <strong>Tuesday, September 1, 2026</strong>.</p><p>They will remain available through <strong>Monday, October 5, 2026</strong>.</p><p>Availability can vary between regions, so subscribers should check their local PlayStation Store once the games go live.</p><h3>PS Plus September 2026 Games FAQ</h3><h3>What are the PlayStation Plus games for September 2026?</h3><p>The four games are <strong>Sniper Elite: Resistance, MLB The Show 26, Wobbly Life and Chained Echoes</strong>.</p><h3>When can I download the September 2026 PS Plus games?</h3><p>The games become available to PlayStation Plus members on <strong>September 1, 2026</strong>.</p><h3>When do the September PS Plus games leave?</h3><p>Sony says the September Monthly Games will remain available until <strong>October 5, 2026</strong>.</p><h3>Are the September PS Plus games available on PS4?</h3><p>Three games have PS4 versions in the lineup: <strong>Sniper Elite: Resistance, Wobbly Life and Chained Echoes</strong>. MLB The Show 26 is listed for <strong>PS5 only</strong> in Sony’s announcement.</p><h3>Is Wobbly Life local multiplayer?</h3><p>Yes. Wobbly Life supports <strong>local split-screen multiplayer for up to four players</strong>, as well as online multiplayer.</p><h3>Is Sniper Elite: Resistance co-op?</h3><p>Yes. The campaign supports cooperative play. The game also features multiplayer, Axis Invasion and a Survival mode for up to four players.</p><h3>Is MLB The Show 26 on PS4 with PlayStation Plus?</h3><p>No. Sony lists the September PlayStation Plus version of <strong>MLB The Show 26 for PS5</strong>.</p><h3>Final Thoughts</h3><p>The <strong>PlayStation Plus September 2026 lineup</strong> covers a surprisingly broad range of genres.</p><p>Sniper Elite: Resistance brings stealth and tactical shooting, MLB The Show 26 delivers a full baseball experience, Wobbly Life focuses on chaotic multiplayer fun, and Chained Echoes provides a story-driven RPG for players who prefer something more traditional.</p><p>All four games arrive on <strong>September 1</strong>, giving subscribers until <strong>October 5, 2026</strong> to claim them.</p><p>Whether you’re looking for a long-range rifle, a baseball bat, a colorful sandbox or a classic RPG adventure, September’s PlayStation Plus selection should have at least one game worth adding to your library.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=010b550488e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create Your Own AI Model: A Practical Guide]]></title>
            <link>https://medium.com/@aleksej.gudkov/how-to-create-your-own-ai-model-a-practical-guide-5d4561a04000?source=rss-5d0e6f5130f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d4561a04000</guid>
            <dc:creator><![CDATA[UATeam]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 18:12:35 GMT</pubDate>
            <atom:updated>2025-06-06T18:12:53.151Z</atom:updated>
            <content:encoded><![CDATA[<p>Creating your own AI model can boost productivity, power custom solutions, and give you a competitive edge. Whether you’re building a recommendation engine, chatbot, or image classifier, this guide will walk you through the exact steps to develop a functional AI model from scratch.</p><h3>Step 1: Define the Problem</h3><p>Start by identifying a <strong>specific and solvable problem</strong>. Your AI model should have a clear goal — e.g., classify emails as spam, predict housing prices, or detect sentiment in reviews.</p><h3>Tip:</h3><p>Use <strong>narrow, domain-specific problems</strong> for the best performance with limited resources.</p><h3>Step 2: Collect and Prepare Data</h3><p>AI models rely on <strong>high-quality, labeled data</strong>. Gather data from APIs, web scraping, internal databases, or public datasets.</p><h3>Key Actions:</h3><ul><li>Clean missing or inconsistent values</li><li>Normalize data (scaling, encoding)</li><li>Split into <strong>training</strong>, <strong>validation</strong>, and <strong>test</strong> sets (e.g., 70/15/15)</li></ul><h3>Step 3: Choose the Right Model Type</h3><p>Select a model architecture based on your problem:</p><p>Problem TypeRecommended ModelImage classificationConvolutional Neural Network (CNN)Text processingTransformer / RNN / BERTPredictionsLinear Regression, XGBoostRecommendationMatrix Factorization, Deep Learning</p><h3>Step 4: Select a Framework</h3><p>Popular frameworks for AI development:</p><ul><li><strong>TensorFlow</strong> — ideal for deep learning and production</li><li><strong>PyTorch</strong> — favored for flexibility and research</li><li><strong>scikit-learn</strong> — best for classical ML models</li></ul><p>Install via pip:</p><pre>pip install tensorflow<br># or<br>pip install torch torchvision<br># or<br>pip install scikit-learn</pre><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h3>Step 5: Train the Model</h3><p>Use your training set to fit the model. Example with scikit-learn:</p><pre>from sklearn.ensemble import RandomForestClassifier<br>model = RandomForestClassifier()<br>model.fit(X_train, y_train)</pre><p>For deep learning (e.g., PyTorch):</p><pre># Define architecture, loss, optimizer<br># Loop over epochs and batches for training</pre><p>Use <strong>GPU acceleration</strong> if working with large data or deep models.</p><h3>Step 6: Evaluate and Tune</h3><p>Assess the model on your validation/test set using key metrics:</p><ul><li><strong>Accuracy / Precision / Recall</strong> for classification</li><li><strong>RMSE / MAE</strong> for regression</li></ul><p>Use techniques like:</p><ul><li>Hyperparameter tuning (e.g., GridSearchCV)</li><li>Cross-validation</li><li>Early stopping (for deep learning)</li></ul><h3>Step 7: Deploy the Model</h3><p>Options for deploying AI models:</p><ul><li><strong>REST API</strong> (e.g., FastAPI, Flask)</li><li><strong>Cloud services</strong> (e.g., AWS SageMaker, Google Vertex AI)</li><li><strong>On-device AI</strong> (e.g., TensorFlow Lite)</li></ul><p>Example with FastAPI:</p><pre>from fastapi import FastAPI<br>import joblib<br><br>app = FastAPI()<br>model = joblib.load(&quot;model.pkl&quot;)<br>@app.post(&quot;/predict&quot;)<br>def predict(data: dict):<br>    return {&quot;prediction&quot;: model.predict([data[&quot;features&quot;]])[0]}</pre><h3>Final Tips for Success</h3><ul><li>Focus on <strong>data quality</strong> over model complexity</li><li>Start with <strong>simple models</strong> before deep learning</li><li>Continuously monitor performance in production</li><li>Ensure your model avoids <strong>bias and overfitting</strong></li></ul><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h3>Conclusion</h3><p>Building your own AI model is a practical, step-by-step process. With the right tools and approach, even individuals or small teams can create powerful, customized AI solutions that scale.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d4561a04000" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Relaxed CORS Settings: What They Are and When to Use Them]]></title>
            <link>https://medium.com/@aleksej.gudkov/relaxed-cors-settings-what-they-are-and-when-to-use-them-ec03e931d706?source=rss-5d0e6f5130f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec03e931d706</guid>
            <dc:creator><![CDATA[UATeam]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 18:03:15 GMT</pubDate>
            <atom:updated>2025-06-06T18:03:15.027Z</atom:updated>
            <content:encoded><![CDATA[<p>Cross-Origin Resource Sharing (CORS) is a security mechanism that allows web applications to control how resources on a server can be accessed by external domains. While strict CORS policies ensure security, there are situations where relaxed CORS settings may be necessary. This article explains what relaxed CORS settings are, when to use them, and best practices to ensure security while allowing necessary access.</p><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h3>What Is CORS?</h3><p>CORS is a browser-enforced policy designed to prevent unauthorized access to resources on a web server. By default, web browsers block requests from origins (domains, protocols, or ports) different from the server’s own origin.</p><p>CORS headers in the server’s HTTP response tell the browser whether or not to allow the request.</p><p>Key CORS headers include:</p><ol><li><strong>Access-Control-Allow-Origin:</strong> Specifies which origins are permitted.</li><li><strong>Access-Control-Allow-Methods:</strong> Lists HTTP methods (e.g., GET, POST) allowed for cross-origin requests.</li><li><strong>Access-Control-Allow-Headers:</strong> Defines which headers can be used in requests.</li><li><strong>Access-Control-Allow-Credentials:</strong> Determines if cookies or authorization headers are allowed in requests.</li></ol><h3>What Are Relaxed CORS Settings?</h3><p>Relaxed CORS settings refer to configurations that permit broader access to resources from external origins. For example:</p><ul><li>Allowing requests from all origins (*).</li><li>Permitting credentials (cookies, HTTP authentication).</li><li>Allowing all HTTP methods (GET, POST, PUT, DELETE, etc.).</li><li>Enabling non-standard headers like Authorization or Content-Type.</li></ul><p>Example of relaxed CORS settings in HTTP headers:</p><pre>Access-Control-Allow-Origin: *<br>Access-Control-Allow-Methods: GET, POST, PUT, DELETE<br>Access-Control-Allow-Headers: Authorization, Content-Type<br>Access-Control-Allow-Credentials: true</pre><h3>When to Use Relaxed CORS Settings</h3><p>Relaxed CORS settings can be useful in specific scenarios:</p><h4>1. Public APIs</h4><ul><li>If your API is meant to be publicly accessible, you may need to allow requests from any origin (*) to ensure usability across different applications.</li><li>Example: Open weather or mapping APIs.</li></ul><h4>2. Internal Development and Testing</h4><ul><li>During development, you may use relaxed settings to bypass restrictions and speed up integration testing across multiple domains.</li></ul><h4>3. Cross-Domain Integrations</h4><ul><li>If your application interacts with third-party platforms, relaxed CORS settings may be needed to allow seamless communication between different origins.</li></ul><h4>4. SaaS Applications with Multi-Tenant Support</h4><ul><li>Applications serving multiple clients may require dynamic CORS settings to allow requests from various customer domains.</li></ul><h3>Risks of Relaxed CORS Settings</h3><p>Relaxing CORS settings can expose your server to security vulnerabilities, including:</p><ol><li><strong>Cross-Site Request Forgery (CSRF):</strong></li></ol><ul><li>Malicious websites can trick users into making unauthorized requests on their behalf.</li></ul><p>2. <strong>Data Leakage:</strong></p><ul><li>Sensitive information might be exposed to unintended origins.</li></ul><p>3. <strong>Uncontrolled Resource Access:</strong></p><ul><li>Public access to resources may lead to abuse or overuse of APIs.</li></ul><h3>Best Practices for Relaxed CORS Settings</h3><p>To ensure security while using relaxed CORS settings, follow these best practices:</p><h4>1. Restrict Origins Where Possible</h4><ul><li>Avoid using Access-Control-Allow-Origin: * unless absolutely necessary.</li></ul><p>Specify trusted domains dynamically if needed:</p><pre>const allowedOrigins = [&#39;https://example.com&#39;, &#39;https://api.partner.com&#39;];<br>app.use((req, res, next) =&gt; {<br>    const origin = req.headers.origin;<br>    if (allowedOrigins.includes(origin)) {<br>        res.setHeader(&#39;Access-Control-Allow-Origin&#39;, origin);<br>    }<br>    next();<br>});</pre><h4>2. Limit Allowed Methods</h4><p>Only allow the methods your application requires:</p><pre>Access-Control-Allow-Methods: GET, POST</pre><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h4>3. Use Secure Headers</h4><ul><li>Ensure the use of HTTPS for secure communication.</li></ul><p>Enable Access-Control-Allow-Credentials only when necessary:</p><pre>Access-Control-Allow-Credentials: true</pre><h4>4. Validate Incoming Requests</h4><ul><li>Implement server-side validation to verify the authenticity of requests.</li></ul><h4>5. Avoid Overly Broad Headers</h4><p>Restrict allowed headers to only those necessary for your application:</p><pre>Access-Control-Allow-Headers: Content-Type, Authorization</pre><h4>6. Monitor and Log Usage</h4><ul><li>Track cross-origin requests to detect potential misuse or unauthorized access.</li></ul><h3>How to Configure Relaxed CORS Settings</h3><p>Here’s how you can implement relaxed CORS settings in common frameworks:</p><h4>1. Express.js (Node.js)</h4><p>Use the cors middleware:</p><pre>const cors = require(&#39;cors&#39;);<br>const app = require(&#39;express&#39;)();<br><br>app.use(cors({<br>    origin: &#39;*&#39;,<br>    methods: [&#39;GET&#39;, &#39;POST&#39;, &#39;PUT&#39;, &#39;DELETE&#39;],<br>    allowedHeaders: [&#39;Authorization&#39;, &#39;Content-Type&#39;],<br>    credentials: true<br>}));<br>app.listen(3000, () =&gt; console.log(&#39;Server running on port 3000&#39;));</pre><h4>2. Flask (Python)</h4><p>Use the flask-cors library:</p><pre>from flask import Flask<br>from flask_cors import CORS<br><br>app = Flask(__name__)<br>CORS(app, resources={r&quot;/*&quot;: {&quot;origins&quot;: &quot;*&quot;}})<br>@app.route(&quot;/&quot;)<br>def home():<br>    return &quot;Relaxed CORS settings enabled&quot;<br>if __name__ == &quot;__main__&quot;:<br>    app.run()</pre><h4>3. Apache Server</h4><p>Add the following to your .htaccess file:</p><pre>&lt;IfModule mod_headers.c&gt;<br>    Header set Access-Control-Allow-Origin &quot;*&quot;<br>    Header set Access-Control-Allow-Methods &quot;GET, POST, PUT, DELETE&quot;<br>    Header set Access-Control-Allow-Headers &quot;Authorization, Content-Type&quot;<br>&lt;/IfModule&gt;</pre><h4>4. Nginx</h4><p>Add these directives in your Nginx configuration file:</p><pre>add_header Access-Control-Allow-Origin *;<br>add_header Access-Control-Allow-Methods &quot;GET, POST, PUT, DELETE&quot;;<br>add_header Access-Control-Allow-Headers &quot;Authorization, Content-Type&quot;;</pre><h3>Common Mistakes to Avoid</h3><ol><li><strong>Using </strong><strong>* with Credentials:</strong></li></ol><ul><li>Access-Control-Allow-Origin: * cannot be used with Access-Control-Allow-Credentials: true.</li></ul><p>2. <strong>Overly Broad Permissions:</strong></p><ul><li>Allowing all methods or headers can lead to unnecessary vulnerabilities.</li></ul><p>3. <strong>Ignoring Validation:</strong></p><ul><li>Relaxed CORS settings should not replace proper authentication and validation mechanisms.</li></ul><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h3>Conclusion</h3><p>Relaxed CORS settings are a practical solution for enabling cross-origin access in scenarios like public APIs, development environments, or cross-domain integrations. However, they must be configured carefully to avoid security vulnerabilities. By following the best practices outlined in this guide, you can strike a balance between functionality and security, ensuring your application remains accessible and secure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec03e931d706" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Appropriate Headers for Cross-Origin Requests: A Complete Guide]]></title>
            <link>https://medium.com/@aleksej.gudkov/appropriate-headers-for-cross-origin-requests-a-complete-guide-e0997b42334f?source=rss-5d0e6f5130f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0997b42334f</guid>
            <dc:creator><![CDATA[UATeam]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 18:00:28 GMT</pubDate>
            <atom:updated>2025-06-06T18:00:28.811Z</atom:updated>
            <content:encoded><![CDATA[<p>Cross-origin requests are an essential part of modern web applications, enabling data exchange between different domains. However, managing cross-origin requests securely requires the use of appropriate HTTP headers defined by the Cross-Origin Resource Sharing (CORS) standard. This guide explains the key headers involved in cross-origin requests, their roles, and best practices for configuring them effectively.</p><h3>What Are Cross-Origin Requests?</h3><p>A cross-origin request occurs when a web application interacts with a server hosted on a different origin (domain, protocol, or port) than its own. For security reasons, browsers restrict these requests, allowing only those explicitly permitted by the server through CORS headers.</p><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h3>Key HTTP Headers for Cross-Origin Requests</h3><p>The following headers play a crucial role in managing cross-origin requests:</p><h4>1. Access-Control-Allow-Origin</h4><p>This header specifies which origins are allowed to access resources on the server.</p><p><strong>Syntax:</strong></p><pre>Access-Control-Allow-Origin: &lt;origin&gt; | *</pre><p><strong>Examples:</strong></p><p>Allow a specific origin</p><pre>Access-Control-Allow-Origin: https://example.com</pre><p>Allow all origins (not recommended for sensitive APIs):</p><pre>Access-Control-Allow-Origin: *</pre><p><strong>Best Practice:</strong></p><ul><li>Avoid using * unless the API is meant to be publicly accessible.</li></ul><h4>2. Access-Control-Allow-Methods</h4><p>This header lists the HTTP methods (e.g., GET, POST, PUT, DELETE) that are permitted for cross-origin requests.</p><p><strong>Syntax:</strong></p><pre>Access-Control-Allow-Methods: &lt;method&gt;, &lt;method&gt;, ...</pre><p><strong>Example:</strong></p><pre>Access-Control-Allow-Methods: GET, POST, PUT, DELETE</pre><p><strong>Best Practice:</strong></p><ul><li>Specify only the methods your application needs to reduce the risk of unintended access.</li></ul><h4>3. Access-Control-Allow-Headers</h4><p>This header defines which HTTP headers can be used in the request.</p><p><strong>Syntax:</strong></p><pre>Access-Control-Allow-Headers: &lt;header&gt;, &lt;header&gt;, ...</pre><p><strong>Examples:</strong></p><pre>Access-Control-Allow-Headers: Content-Type, Authorization</pre><p><strong>Best Practice:</strong></p><ul><li>Limit this header to only the necessary custom headers (e.g., Authorization for token-based authentication).</li></ul><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h4>4. Access-Control-Allow-Credentials</h4><p>This header determines whether credentials (e.g., cookies, HTTP authentication) are allowed in cross-origin requests.</p><p><strong>Syntax:</strong></p><pre>Access-Control-Allow-Credentials: true | false</pre><p><strong>Example:</strong></p><pre>Access-Control-Allow-Credentials: true</pre><p><strong>Important Notes:</strong></p><ul><li>Must not be used with Access-Control-Allow-Origin: *.</li><li>Ensure secure cookies (Secure and HttpOnly flags) are used when enabling credentials.</li></ul><h4>5. Access-Control-Expose-Headers</h4><p>This header specifies which headers are safe to expose to the browser.</p><p><strong>Syntax:</strong></p><pre>Access-Control-Expose-Headers: &lt;header&gt;, &lt;header&gt;, ...</pre><p><strong>Example:</strong></p><pre>Access-Control-Expose-Headers: X-Custom-Header, Content-Length</pre><p><strong>Best Practice:</strong></p><ul><li>Use this header to expose only necessary information, such as custom metadata.</li></ul><h4>6. Access-Control-Max-Age</h4><p>This header specifies how long the results of a preflight request (CORS check) can be cached by the browser.</p><p><strong>Syntax:</strong></p><pre>Access-Control-Max-Age: &lt;seconds&gt;</pre><p><strong>Example:</strong></p><pre>Access-Control-Max-Age: 86400</pre><p><strong>Best Practice:</strong></p><ul><li>Set this value to a reasonable duration (e.g., 24 hours) to minimize preflight requests while maintaining security.</li></ul><h3>Preflight Requests and Relevant Headers</h3><p>For non-simple requests (e.g., requests using methods other than GET or POST with custom headers), browsers send a preflight request to the server. This preflight request uses the OPTIONS method to verify permissions.</p><p>Headers involved in preflight requests include:</p><ul><li>Access-Control-Allow-Methods</li><li>Access-Control-Allow-Headers</li><li>Access-Control-Max-Age</li></ul><h3>Example CORS Configuration</h3><h4>Server-Side CORS Setup (Node.js with Express):</h4><pre>const express = require(&#39;express&#39;);<br>const cors = require(&#39;cors&#39;);<br>const app = express();<br><br>app.use(cors({<br>    origin: &#39;https://example.com&#39;, // Allow specific origin<br>    methods: [&#39;GET&#39;, &#39;POST&#39;],     // Allow specific HTTP methods<br>    allowedHeaders: [&#39;Content-Type&#39;, &#39;Authorization&#39;], // Allow specific headers<br>    credentials: true             // Allow credentials<br>}));<br>app.get(&#39;/api&#39;, (req, res) =&gt; {<br>    res.json({ message: &#39;CORS headers configured successfully!&#39; });<br>});<br>app.listen(3000, () =&gt; console.log(&#39;Server running on port 3000&#39;));</pre><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h3>Conclusion</h3><p>Configuring appropriate headers for cross-origin requests is critical for ensuring secure and efficient communication between different domains. By understanding and implementing the key headers (Access-Control-Allow-Origin, Access-Control-Allow-Methods, etc.), you can create a secure and flexible environment for your web applications. Follow the best practices outlined in this guide to strike the right balance between functionality and security.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0997b42334f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up a Proxy Server: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@aleksej.gudkov/how-to-set-up-a-proxy-server-a-step-by-step-guide-fec0b672c45c?source=rss-5d0e6f5130f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/fec0b672c45c</guid>
            <dc:creator><![CDATA[UATeam]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 17:58:44 GMT</pubDate>
            <atom:updated>2025-06-06T17:58:44.922Z</atom:updated>
            <content:encoded><![CDATA[<p>Setting up a proxy server can improve network security, enable content filtering, optimize performance, and protect your privacy. Whether you’re configuring it for personal use, a business, or a development environment, this guide provides a simple, clear process to get your proxy server up and running.</p><h3>What Is a Proxy Server?</h3><p>A proxy server acts as an intermediary between your device and the internet. When you make a request (e.g., visiting a website), the proxy server forwards the request, retrieves the response, and sends it back to your device.</p><h3>Benefits of a Proxy Server</h3><ol><li><strong>Enhanced Privacy:</strong></li></ol><ul><li>Hides your IP address from websites and other online services.</li></ul><p>2. <strong>Improved Security:</strong></p><ul><li>Filters traffic to block malicious requests and unauthorized access.</li></ul><p>3. <strong>Content Filtering:</strong></p><ul><li>Restrict access to specific websites or types of content.</li></ul><p>4. <strong>Performance Optimization:</strong></p><ul><li>Cache frequently accessed content to reduce load times.</li></ul><p>5. <strong>Development &amp; Testing:</strong></p><ul><li>Simulate network behavior and test APIs or websites under different conditions.</li></ul><h3>Types of Proxy Servers</h3><ol><li><strong>Forward Proxy:</strong></li></ol><ul><li>Forwards client requests to external servers, typically used for accessing blocked content or hiding your IP.</li></ul><p>2. <strong>Reverse Proxy:</strong></p><ul><li>Sits in front of web servers, distributing traffic and improving load balancing.</li></ul><p>3. <strong>Transparent Proxy:</strong></p><ul><li>Works without user intervention, often used for content filtering in schools or offices.</li></ul><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h3>How to Set Up a Proxy Server</h3><h4>1. Choose a Proxy Server Software</h4><p>Popular options include:</p><ul><li><strong>Squid Proxy:</strong> Lightweight and widely used for caching and filtering.</li><li><strong>Nginx:</strong> Can be configured as a reverse proxy.</li><li><strong>HAProxy:</strong> Ideal for high-performance reverse proxying.</li><li><strong>Tinyproxy:</strong> Simple, lightweight, and easy to configure.</li></ul><h4>2. Prepare Your Environment</h4><p><strong>Choose Your Operating System:</strong></p><p>Proxy servers are typically hosted on Linux or Windows systems. For this guide, we’ll focus on Linux.</p><p><strong>Install Necessary Tools:</strong></p><p>Ensure your system is up to date:</p><pre>sudo apt update &amp;&amp; sudo apt upgrade -y</pre><p><strong>Set Up Firewall Rules:</strong></p><p>Allow inbound and outbound traffic on the required ports (e.g., port 3128 for Squid).</p><h4>3. Install and Configure the Proxy Server</h4><p><strong>A. Set Up Squid Proxy (Forward Proxy)</strong></p><p><strong>Install Squid:</strong></p><pre>sudo apt install squid -y</pre><p><strong>Edit the Squid Configuration File:</strong></p><p>Open the configuration file:</p><pre>sudo nano /etc/squid/squid.conf</pre><p>Update the configuration to allow traffic:</p><pre>http_access allow all</pre><p>Set up caching (optional):</p><pre>cache_dir ufs /var/spool/squid 100 16 256</pre><p><strong>Restart Squid:</strong></p><pre>sudo systemctl restart squid</pre><p><strong>Test Your Proxy:</strong></p><p>Configure your browser or device to use the proxy at http://&lt;server-ip&gt;:3128.</p><p><strong>B. Set Up Nginx as a Reverse Proxy</strong></p><p><strong>Install Nginx:</strong></p><pre>sudo apt install nginx -y</pre><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><p><strong>Configure Nginx as a Reverse Proxy:</strong></p><p>Edit the Nginx configuration file:</p><pre>sudo nano /etc/nginx/sites-available/default</pre><p>Add the reverse proxy configuration:</p><pre>server {<br>    listen 80;<br><br>location / {<br>        proxy_pass http://&lt;backend-server-ip&gt;;<br>        proxy_set_header Host $host;<br>        proxy_set_header X-Real-IP $remote_addr;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>    }<br>}</pre><p><strong>Restart Nginx:</strong></p><pre>sudo systemctl restart nginx</pre><p><strong>Verify Configuration:</strong></p><p>Access the proxy server’s IP address in your browser, and it should redirect traffic to the backend server.</p><h4>4. Test Your Proxy Server</h4><p><strong>Verify Network Requests:</strong></p><p>Use tools like curl to test requests:</p><pre>curl -x http://&lt;proxy-server-ip&gt;:3128 http://example.com</pre><p><strong>Monitor Proxy Logs:</strong></p><p>For Nginx:</p><pre>tail -f /var/log/nginx/access.log</pre><p>For Squid:</p><pre>tail -f /var/log/squid/access.log</pre><p><strong>Check Browser Configuration:</strong></p><p>Configure your browser to use the proxy server and ensure traffic is routed correctly.</p><h4>5. Secure Your Proxy Server</h4><p><strong>Add Authentication:</strong></p><p>For Squid, set up basic authentication:</p><pre>sudo apt install apache2-utils<br>htpasswd -c /etc/squid/passwords &lt;username&gt;</pre><p>Update squid.conf to require authentication:</p><pre>auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwords<br>acl authenticated proxy_auth REQUIRED<br>http_access allow authenticated</pre><p><strong>Encrypt Traffic with HTTPS:</strong></p><p>Install an SSL certificate for secure communication.</p><p><strong>Restrict Access:</strong></p><p>Allow only specific IP ranges to use the proxy by updating access control lists.</p><h3>Common Proxy Server Configurations</h3><p><strong>ScenarioProxy TypeConfiguration Tips</strong>Hide User IdentityForward ProxyUse Access-Control-Allow-Origin: * for anonymous browsing.Load BalancingReverse ProxyUse Nginx or HAProxy with traffic distribution rules.Content FilteringTransparent ProxySet up Squid with ACLs to block unwanted domains or content.</p><h3>Best Practices for Proxy Server Setup</h3><ol><li><strong>Keep Software Updated:</strong></li></ol><ul><li>Regularly update the proxy server to patch security vulnerabilities.</li></ul><p>2. <strong>Monitor Traffic:</strong></p><ul><li>Analyze logs to detect unusual activity or misuse.</li></ul><p>3. <strong>Limit Access:</strong></p><ul><li>Restrict proxy usage to authorized users or devices.</li></ul><p>4. <strong>Implement Caching:</strong></p><ul><li>Cache frequently accessed content to reduce server load and improve performance.</li></ul><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h3>Conclusion</h3><p>Setting up a proxy server is a straightforward process with tools like Squid and Nginx. Whether for privacy, security, or performance optimization, a proxy server is an essential component for managing network traffic effectively. Follow this guide to configure your proxy securely and efficiently for your specific use case.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fec0b672c45c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preflight Requests: What They Are and How to Handle Them]]></title>
            <link>https://medium.com/@aleksej.gudkov/preflight-requests-what-they-are-and-how-to-handle-them-3aa1fa7d388c?source=rss-5d0e6f5130f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/3aa1fa7d388c</guid>
            <dc:creator><![CDATA[UATeam]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 17:55:58 GMT</pubDate>
            <atom:updated>2025-06-06T17:55:58.019Z</atom:updated>
            <content:encoded><![CDATA[<p>Preflight requests are an essential component of the Cross-Origin Resource Sharing (CORS) mechanism, designed to ensure secure communication between different origins on the web. They act as a security checkpoint, verifying whether a server permits the requested cross-origin operation. This article explains what preflight requests are, why they are needed, and how to handle them effectively.</p><h3>What Is a Preflight Request?</h3><p>A preflight request is a preliminary HTTP request sent by the browser to the server before the actual cross-origin request. It uses the OPTIONS method to check if the server allows the intended operation.</p><p>This step is mandatory for <strong>non-simple requests</strong>, which include:</p><ul><li>Methods other than GET, POST, and HEAD (e.g., PUT, DELETE).</li><li>Requests with custom headers (e.g., Authorization, Content-Type: application/json).</li><li>Requests that use credentials (e.g., cookies, HTTP authentication).</li></ul><h3>Why Are Preflight Requests Important?</h3><ol><li><strong>Security:</strong></li></ol><ul><li>Prevents unauthorized requests from being processed without server approval.</li><li>Ensures compliance with the Same-Origin Policy (SOP).</li></ul><p>2. <strong>Validation:</strong></p><ul><li>Confirms that the server explicitly permits the requested method, headers, and credentials.</li></ul><p>3. <strong>Error Prevention:</strong></p><ul><li>Avoids sending potentially harmful requests (e.g., data modification) to servers without confirmation.</li></ul><h3>How Does a Preflight Request Work?</h3><p>When a non-simple request is initiated, the browser sends an OPTIONS request to the server, including specific headers that describe the actual request. The server responds with the allowed CORS policy.</p><h4>Preflight Request Example:</h4><p><strong>Request:</strong></p><pre>OPTIONS /api/resource HTTP/1.1<br>Host: api.example.com<br>Origin: https://client.example.com<br>Access-Control-Request-Method: PUT<br>Access-Control-Request-Headers: Authorization, Content-Type</pre><p><strong>Response:</strong></p><pre>HTTP/1.1 204 No Content<br>Access-Control-Allow-Origin: https://client.example.com<br>Access-Control-Allow-Methods: GET, POST, PUT<br>Access-Control-Allow-Headers: Authorization, Content-Type<br>Access-Control-Allow-Credentials: true<br>Access-Control-Max-Age: 86400</pre><h3>Key Headers in Preflight Requests</h3><ol><li><strong>Request Headers:</strong></li></ol><ul><li>Access-Control-Request-Method: Specifies the HTTP method of the actual request (e.g., PUT, DELETE).</li><li>Access-Control-Request-Headers: Lists the headers the request intends to use (e.g., Authorization).</li></ul><p>2. <strong>Response Headers:</strong></p><ul><li>Access-Control-Allow-Origin: Specifies the origin(s) allowed to access the resource.</li><li>Access-Control-Allow-Methods: Lists the HTTP methods allowed for cross-origin requests.</li><li>Access-Control-Allow-Headers: Specifies the headers that can be included in the request.</li><li>Access-Control-Allow-Credentials: Indicates if credentials (e.g., cookies) are allowed.</li><li>Access-Control-Max-Age: Specifies how long the preflight response can be cached by the browser.</li></ul><h3>How to Handle Preflight Requests</h3><p>Properly configuring the server is crucial to ensure preflight requests succeed.</p><h4>1. Configure Server CORS Settings</h4><ul><li>Add CORS headers to the server’s response for preflight requests.</li></ul><p>Example Configuration in Express.js:</p><pre>const express = require(&#39;express&#39;);<br>const cors = require(&#39;cors&#39;);<br>const app = express();<br><br>app.use(cors({<br>    origin: &#39;https://client.example.com&#39;,<br>    methods: [&#39;GET&#39;, &#39;POST&#39;, &#39;PUT&#39;, &#39;DELETE&#39;],<br>    allowedHeaders: [&#39;Content-Type&#39;, &#39;Authorization&#39;],<br>    credentials: true<br>}));<br>app.options(&#39;*&#39;, cors()); // Handle preflight requests<br>app.listen(3000, () =&gt; console.log(&#39;Server running on port 3000&#39;));</pre><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h4>2. Optimize Access-Control-Max-Age</h4><ul><li>Set the Access-Control-Max-Age header to allow browsers to cache the preflight response, reducing repeated preflight requests.</li></ul><p>Example:</p><pre>Access-Control-Max-Age: 86400</pre><p>This instructs the browser to cache the preflight response for 24 hours.</p><h3>Best Practices for Handling Preflight Requests</h3><ol><li><strong>Minimize Preflight Requests:</strong></li></ol><ul><li>Use simple requests (e.g., GET, POST with standard headers) whenever possible.</li><li>Avoid custom headers unless absolutely necessary.</li></ul><p>2. <strong>Cache Preflight Responses:</strong></p><ul><li>Use the Access-Control-Max-Age header to cache preflight responses for a reasonable duration.</li></ul><p>3. <strong>Restrict Origins:</strong></p><ul><li>Use a whitelist of allowed origins to prevent unauthorized access.</li></ul><p>4. <strong>Test Configuration:</strong></p><ul><li>Use tools like curl or browser developer tools to verify preflight request handling.</li></ul><h3>Common Issues and Solutions</h3><ol><li><strong>Missing CORS Headers:</strong></li></ol><ul><li>Ensure the server responds with Access-Control-Allow-* headers for both preflight and actual requests.</li></ul><p>2. <strong>Invalid </strong><strong>Access-Control-Allow-Origin:</strong></p><ul><li>If using *, ensure that credentials are not enabled (Access-Control-Allow-Credentials: false).</li></ul><p>3. <strong>Incorrect Allowed Methods or Headers:</strong></p><ul><li>Double-check the Access-Control-Allow-Methods and Access-Control-Allow-Headers configuration to match the request.</li></ul><p>4. <strong>Preflight Response Not Cached:</strong></p><ul><li>Add Access-Control-Max-Age to reduce the frequency of preflight requests.</li></ul><h3>Preflight Optimization Example</h3><h4>Nginx Configuration for CORS:</h4><pre>server {<br>    listen 80;<br>    server_name api.example.com;<br><br>location / {<br>        if ($request_method = OPTIONS) {<br>            add_header Access-Control-Allow-Origin &quot;https://client.example.com&quot;;<br>            add_header Access-Control-Allow-Methods &quot;GET, POST, PUT, DELETE&quot;;<br>            add_header Access-Control-Allow-Headers &quot;Authorization, Content-Type&quot;;<br>            add_header Access-Control-Allow-Credentials &quot;true&quot;;<br>            add_header Access-Control-Max-Age 86400;<br>            return 204;<br>        }<br>        # Normal request handling<br>        add_header Access-Control-Allow-Origin &quot;https://client.example.com&quot;;<br>        proxy_pass http://backend_service;<br>    }<br>}</pre><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h3>Conclusion</h3><p>Preflight requests are a critical part of CORS, ensuring secure and controlled cross-origin communication. By understanding how they work and configuring your server properly, you can reduce unnecessary requests, optimize performance, and maintain security. Follow the best practices outlined in this guide to handle preflight requests effectively and create a seamless experience for users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3aa1fa7d388c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CORS Policy: Understanding and Configuring Cross-Origin Resource Sharing]]></title>
            <link>https://medium.com/@aleksej.gudkov/cors-policy-understanding-and-configuring-cross-origin-resource-sharing-561225d40240?source=rss-5d0e6f5130f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/561225d40240</guid>
            <dc:creator><![CDATA[UATeam]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 17:52:46 GMT</pubDate>
            <atom:updated>2025-06-06T17:52:46.719Z</atom:updated>
            <content:encoded><![CDATA[<p>Cross-Origin Resource Sharing (CORS) is a web standard that allows servers to control how resources are shared across different origins. Proper configuration of a CORS policy is essential for enabling secure cross-origin requests while preventing unauthorized access. This article explains what a CORS policy is, its components, and how to configure it effectively.</p><h3>What Is CORS Policy?</h3><p>A CORS policy determines whether and how a server permits cross-origin requests from web clients. Browsers enforce this policy to prevent unauthorized access to resources hosted on a different origin (domain, protocol, or port).</p><p>Without a valid CORS policy, modern browsers block cross-origin requests, showing errors like:</p><pre>Access to fetch at &#39;https://api.example.com&#39; from origin &#39;https://client.example.com&#39; has been blocked by CORS policy.</pre><h3>Why Is CORS Policy Important?</h3><ol><li><strong>Security:</strong></li></ol><ul><li>Prevents malicious websites from accessing sensitive data hosted on other domains.</li></ul><p>2. <strong>Controlled Access:</strong></p><ul><li>Allows you to specify trusted domains and methods that can interact with your resources.</li></ul><p>3. <strong>Seamless API Integration:</strong></p><ul><li>Enables legitimate cross-origin requests for APIs, external services, and third-party integrations.</li></ul><h3>How CORS Policy Works</h3><p>When a browser makes a cross-origin request, the server includes CORS headers in its HTTP response. These headers dictate whether the browser should allow the request.</p><p><strong>Key Steps:</strong></p><ol><li>The browser sends a request to the server.</li><li>The server checks its CORS policy.</li><li>The server responds with appropriate headers.</li><li>The browser determines whether to allow the request based on the headers.</li></ol><h3>Key CORS Headers</h3><p><strong>Access-Control-Allow-Origin:</strong></p><p>Specifies which origins can access the resource.</p><p>Example:</p><pre>Access-Control-Allow-Origin: https://client.example.com</pre><p>To allow all origins (not recommended for sensitive APIs):</p><pre>Access-Control-Allow-Origin: *</pre><p><strong>Access-Control-Allow-Methods:</strong></p><p>Lists the HTTP methods (e.g., GET, POST, PUT) allowed for cross-origin requests.</p><p>Example:</p><pre>Access-Control-Allow-Methods: GET, POST, PUT</pre><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><p><strong>Access-Control-Allow-Headers:</strong></p><p>Specifies which HTTP headers can be used in the request.</p><p>Example:</p><pre>Access-Control-Allow-Headers: Authorization, Content-Type</pre><p><strong>Access-Control-Allow-Credentials:</strong></p><p>Determines if cookies or authentication credentials are allowed in the request.</p><p>Example:</p><pre>Access-Control-Allow-Credentials: true</pre><p><strong>Access-Control-Max-Age:</strong></p><p>Specifies how long the results of a preflight request can be cached.</p><p>Example:</p><pre>Access-Control-Max-Age: 86400</pre><p><strong>Access-Control-Expose-Headers:</strong></p><p>Lists headers that the browser is allowed to expose to JavaScript.</p><p>Example:</p><pre>Access-Control-Expose-Headers: X-Custom-Header, Content-Length</pre><h3>Configuring CORS Policy</h3><h4>1. Using Node.js with Express</h4><pre>const express = require(&#39;express&#39;);<br>const cors = require(&#39;cors&#39;);<br>const app = express();<br><br>app.use(cors({<br>    origin: &#39;https://client.example.com&#39;,<br>    methods: [&#39;GET&#39;, &#39;POST&#39;],<br>    allowedHeaders: [&#39;Content-Type&#39;, &#39;Authorization&#39;],<br>    credentials: true<br>}));<br>app.get(&#39;/api&#39;, (req, res) =&gt; {<br>    res.json({ message: &#39;CORS policy applied successfully!&#39; });<br>});<br>app.listen(3000, () =&gt; console.log(&#39;Server running on port 3000&#39;));</pre><h4>2. Using Nginx</h4><p>Add the following directives to your Nginx configuration file:</p><pre>server {<br>    listen 80;<br>    server_name api.example.com;<br><br>location / {<br>        add_header Access-Control-Allow-Origin &quot;https://client.example.com&quot;;<br>        add_header Access-Control-Allow-Methods &quot;GET, POST, PUT, DELETE&quot;;<br>        add_header Access-Control-Allow-Headers &quot;Authorization, Content-Type&quot;;<br>        add_header Access-Control-Allow-Credentials &quot;true&quot;;<br>        proxy_pass http://backend_server;<br>    }<br>}</pre><h4>3. Using Flask (Python)</h4><pre>from flask import Flask<br>from flask_cors import CORS<br><br>app = Flask(__name__)<br>CORS(app, resources={r&quot;/*&quot;: {&quot;origins&quot;: &quot;https://client.example.com&quot;}})<br>@app.route(&#39;/api&#39;)<br>def home():<br>    return {&quot;message&quot;: &quot;CORS policy applied successfully&quot;}<br>if __name__ == &#39;__main__&#39;:<br>    app.run()</pre><h3>Common CORS Policy Errors and Solutions</h3><ol><li><strong>Error: `No ‘Access-Control-Allow-Origin’ header is present.</strong></li></ol><ul><li><strong>Solution:</strong> Ensure the server includes the Access-Control-Allow-Origin header.</li></ul><p>2. <strong>Error: `Method Not Allowed.</strong></p><ul><li><strong>Solution:</strong> Add the required method to the Access-Control-Allow-Methods header.</li></ul><p>3. <strong>Error: Preflight Request Fails.</strong></p><ul><li><strong>Solution:</strong> Configure the server to handle OPTIONS requests for preflight checks.</li></ul><p>4. <strong>Error: </strong><strong>* in </strong><strong>Access-Control-Allow-Origin with Credentials.</strong></p><ul><li><strong>Solution:</strong> Replace * with the specific origin and ensure credentials are enabled.</li></ul><p><a href="https://www.goexam.today/top-machine-learning-courses-to-boost-your-career2/">Top Machine Learning Courses to Boost Your Career</a></p><h3>Conclusion</h3><p>A well-configured CORS policy is essential for ensuring secure and controlled cross-origin communication. By understanding the key CORS headers and following best practices, you can enable legitimate requests while protecting your resources from unauthorized access. Use the examples and recommendations in this guide to configure a secure and effective CORS policy for your web applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=561225d40240" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unable to Send Email Message on Salesforce: User’s Email Address Not Verified]]></title>
            <link>https://medium.com/@aleksej.gudkov/unable-to-send-email-message-on-salesforce-users-email-address-not-verified-a1649d60d296?source=rss-5d0e6f5130f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1649d60d296</guid>
            <dc:creator><![CDATA[UATeam]]></dc:creator>
            <pubDate>Mon, 30 Dec 2024 21:28:11 GMT</pubDate>
            <atom:updated>2024-12-30T21:28:11.789Z</atom:updated>
            <content:encoded><![CDATA[<p>Salesforce is a powerful CRM tool that enables businesses to manage customer relationships effectively. However, users sometimes encounter issues when sending email messages, particularly due to unverified email addresses. This article addresses the problem of being unable to send email messages because the user’s email address is not verified and provides a possible solution: using an org-wide email address. We will also include step-by-step instructions on how to set up an org-wide email address in Salesforce;</p><h3>Problem: Unable to Send Email Message on Salesforce</h3><p>When attempting to send an email through Salesforce, users may receive an error message indicating that the email cannot be sent because the user’s email address is not verified. This issue can disrupt communication workflows and hinder business operations.</p><h3>Reason: User’s Email Address Not Verified</h3><p>The primary reason for this issue is that the user’s email address in Salesforce has not been verified. Salesforce requires email addresses to be verified to prevent spam and ensure email deliverability. An unverified email address cannot be used to send emails, leading to the error message.</p><h3>Solution: Use Org-Wide Email Address</h3><p>To resolve this issue, you can configure an org-wide email address. An org-wide email address allows multiple users to send emails from a common address, ensuring consistent communication and bypassing the need for individual email verification. Here’s how you can set up an org-wide email address in Salesforce.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1649d60d296" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Send Custom Notifications to Queue Members in Salesforce]]></title>
            <link>https://medium.com/@aleksej.gudkov/how-to-send-custom-notifications-to-queue-members-in-salesforce-136d576c74e8?source=rss-5d0e6f5130f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/136d576c74e8</guid>
            <dc:creator><![CDATA[UATeam]]></dc:creator>
            <pubDate>Mon, 30 Dec 2024 21:27:52 GMT</pubDate>
            <atom:updated>2024-12-30T21:27:52.934Z</atom:updated>
            <content:encoded><![CDATA[<p>Salesforce Queues are an essential feature that helps distribute workload among groups of users, such as customer service teams, sales teams, or other functional groups. While Salesforce provides standard email notifications for queues, there are times when you need more control over the notifications sent to queue members. Custom notifications allow you to tailor the message, format, and delivery method to better fit your organization’s needs. In this article, we’ll explore how to send custom notifications to queue members in Salesforce, discuss why you might want to use custom notifications, and provide best practices to ensure effective communication.</p><h3>How to Send Custom Notifications to Queue Members in Salesforce</h3><h3>Step 1: Set Up Salesforce Notification Builder</h3><p>Salesforce provides a Notification Builder that allows you to create and configure custom notifications. This feature is available in Lightning Experience and can be accessed through the Setup menu.</p><ol><li><strong>Navigate to Setup</strong>: Log in to Salesforce and click the gear icon in the upper right corner to access Setup;</li><li><strong>Search for Notification Builder</strong>: In the Quick Find box, type “Notification Builder” and select it from the list of options.</li><li><strong>Create a New Notification</strong>: Click on “Custom Notifications” and then click “New Custom Notification.”</li><li><strong>Define Notification Details</strong>:</li></ol><ul><li><strong>Label</strong>: Enter a label for the notification, such as “Queue Assignment Alert.”</li><li><strong>API Name</strong>: The API name is auto-generated based on the label but can be customized if needed.</li><li><strong>Supported Channels</strong>: Choose where the notification will be delivered (e.g., Desktop, Mobile).</li></ul><ol><li><strong>Save the Notification</strong>: After filling in the details, click “Save” to create the custom notification.</li></ol><h3>Step 2: Create a Process Using Process Builder</h3><p>To send the custom notification to queue members, you’ll need to set up a process in Process Builder that triggers the notification when specific conditions are met.</p><ol><li><strong>Navigate to Process Builder</strong>: In Setup, search for “Process Builder” and select it.</li><li><strong>Create a New Process</strong>: Click “New” to create a new process. Name your process, such as “Send Queue Notification,” and choose when the process should start (e.g., when a record is created or updated).</li><li><strong>Select the Object</strong>: Choose the object that will trigger the notification, such as Cases or Leads. This object should be the one associated with the queue.</li><li><strong>Define Criteria</strong>:</li></ol><ul><li>Set the criteria for when the notification should be sent. For example, you could trigger the notification when a case is assigned to a specific queue.</li><li>Use the condition builder to specify the criteria (e.g., [Case].OwnerId equals Queue ID).</li></ul><p>5. <strong>Add an Action</strong>:</p><ul><li>Under “Immediate Actions,” click “Add Action” and select “Send Custom Notification.”</li><li>Select the custom notification you created earlier.</li><li>Define the recipient as the queue members using the formula FIND(queueId, [Object].OwnerId).</li><li>Customize the message and other details as needed.</li></ul><p>6. <strong>Activate the Process</strong>: Once you’ve configured the action, click “Activate” to enable the process.</p><h3>Step 3: Test the Custom Notification</h3><p>Before rolling out the custom notification to all users, it’s important to test it to ensure it works as expected.</p><ol><li><strong>Create or Update a Record</strong>: Depending on how you’ve set up the process, create or update a record that meets the criteria for triggering the notification.</li><li><strong>Verify Notification Delivery</strong>: Check whether the queue members receive the notification in the specified channels (e.g., Desktop, Mobile).</li><li><strong>Adjust as Needed</strong>: If the notification isn’t working as expected, review the process setup in Process Builder and the notification configuration in Notification Builder. Make any necessary adjustments and test again.</li></ol><h3>Best Practices for Sending Custom Notifications</h3><h3>1. Keep Notifications Relevant</h3><p>Ensure that the content of your custom notifications is relevant to the recipients. Avoid sending unnecessary or overly frequent notifications, as this can lead to notification fatigue and reduce the effectiveness of your communications.</p><h3>2. Use Clear and Actionable Language</h3><p>Make sure the message in your notification is clear and concise. If the notification requires the recipient to take action, provide clear instructions or include actionable elements like buttons or links.</p><h3>3. Leverage Personalization</h3><p>Personalize your notifications with relevant data, such as the recipient’s name, the record’s details, or any other pertinent information. This makes the notification more engaging and useful.</p><h3>4. Monitor Notification Effectiveness</h3><p>Regularly review how well your notifications are performing. Use Salesforce’s reporting tools to track whether notifications are being received and acted upon, and adjust your strategies as needed.</p><h3>5. Segment Notifications</h3><p>If you have different types of queue members, consider segmenting your notifications based on their roles or responsibilities. This ensures that each recipient receives only the notifications that are relevant to them.</p><h3>Common Issues and How to Resolve Them</h3><h3>1. Notifications Not Being Sent</h3><p>If your custom notifications are not being sent, check the following:</p><ul><li><strong>Process Activation</strong>: Ensure that the process in Process Builder is active.</li><li><strong>Criteria</strong>: Double-check the criteria in Process Builder to ensure that they are correctly set up.</li><li><strong>Recipient Configuration</strong>: Verify that the queue members are correctly identified as recipients.</li></ul><h3>2. Notifications Not Appearing in Expected Channels</h3><p>If notifications are not appearing on desktop or mobile as expected:</p><ul><li><strong>Channel Configuration</strong>: Ensure that the custom notification is configured to be sent to the appropriate channels (e.g., Desktop, Mobile).</li><li><strong>User Preferences</strong>: Check that the recipients have not disabled notifications in their personal settings.</li></ul><h3>3. Duplicate Notifications</h3><p>If queue members are receiving duplicate notifications, it may be due to overlapping processes or criteria. Review your Process Builder setup to ensure that notifications are only triggered once under the desired conditions.</p><h3>FAQs</h3><p><strong>Q: Can I send custom notifications to individual users instead of queue members?</strong><br>A: Yes, you can configure custom notifications to be sent to individual users by specifying the user as the recipient in Process Builder.</p><p><strong>Q: How do I track whether custom notifications are being opened or acted upon?</strong><br>A: Salesforce does not natively track whether notifications are opened, but you can use custom reporting and dashboards to monitor related user actions, such as record updates or changes.</p><p><strong>Q: Can I customize the appearance of custom notifications on mobile devices?</strong><br>A: The appearance of custom notifications on mobile devices is determined by the Salesforce mobile app. While you can customize the message and content, the overall design is managed by the app.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=136d576c74e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Workflow email alert not working in salesforce]]></title>
            <link>https://medium.com/@aleksej.gudkov/workflow-email-alert-not-working-in-salesforce-da79f8437518?source=rss-5d0e6f5130f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/da79f8437518</guid>
            <dc:creator><![CDATA[UATeam]]></dc:creator>
            <pubDate>Mon, 30 Dec 2024 21:27:28 GMT</pubDate>
            <atom:updated>2024-12-30T21:27:28.734Z</atom:updated>
            <content:encoded><![CDATA[<p>A <strong>workflow email alert</strong> in Salesforce is an automated email notification triggered by a workflow rule when specific criteria are met. These alerts can be sent to users, contacts, or external email addresses to inform them about important events or actions that require attention, such as changes to a record, approaching deadlines, or task assignments.</p><h3>Common Reasons Why Workflow Email Alerts Might Not Be Working</h3><p>If your workflow email alerts are not working in Salesforce, several factors could be causing the issue. Let’s explore some of the most common reasons and how to troubleshoot them.</p><h3>1. Email Deliverability Settings</h3><p>Salesforce has a setting that controls the deliverability of outbound emails. If email deliverability is set to “No Access” or “System Emails Only,” workflow email alerts will not be delivered.</p><p><strong>Check Email Deliverability Settings</strong>:</p><ol><li>Navigate to <strong>Setup</strong> in Salesforce;</li><li>In the Quick Find box, type <strong>“Deliverability”</strong> and select it.</li><li>Ensure that <strong>Access Level</strong> is set to <strong>“All Email”</strong>.</li></ol><h3>2. Invalid or Inactive Email Addresses</h3><p>If the recipient email address is invalid, inactive, or incorrectly formatted, the workflow email alert will not be delivered. Salesforce requires all email addresses to conform to standard email formats.</p><p><strong>Verify Email Addresses</strong>:</p><ul><li>Ensure that all recipient email addresses are valid and active.</li><li>Check for any typos or incorrect formatting in the email addresses.</li></ul><h3>3. Workflow Rule Criteria Not Met</h3><p>Workflow email alerts are triggered based on specific criteria defined in the workflow rule. If the criteria are not met, the workflow rule will not trigger, and the email alert will not be sent.</p><p><strong>Review Workflow Rule Criteria</strong>:</p><ul><li>Verify that the record meets all the criteria specified in the workflow rule.</li><li>Double-check any filter logic or conditions to ensure they are set up correctly.</li></ul><h3>4. Inactive Workflow Rule</h3><p>If the workflow rule associated with the email alert is inactive, the workflow will not be triggered, and the email alert will not be sent.</p><p><strong>Check Workflow Rule Status</strong>:</p><ul><li>Navigate to <strong>Setup</strong> &gt; <strong>Process Automation</strong> &gt; <strong>Workflow Rules</strong>.</li><li>Ensure that the workflow rule is active and enabled.</li></ul><h3>5. Email Alert Configuration Issues</h3><p>Issues with the email alert configuration, such as incorrect email template selection or missing recipient details, can prevent the email alert from being sent.</p><p><strong>Verify Email Alert Configuration</strong>:</p><ul><li>Ensure that the correct email template is selected and active.</li><li>Check that the recipient type and email addresses are correctly configured.</li></ul><h3>6. User Permissions and Access Issues</h3><p>The user triggering the workflow must have the necessary permissions to send emails. If the user lacks the appropriate permissions, the email alert will not be sent.</p><p><strong>Check User Permissions</strong>:</p><ul><li>Ensure that the user has the <strong>“Send Email”</strong> permission.</li><li>Verify that the user’s profile or permission set includes access to the required objects and fields.</li></ul><h3>7. Workflow Evaluation Criteria</h3><p>If the workflow evaluation criteria are not set correctly, the workflow may not evaluate the record changes as expected, resulting in no email alerts being sent.</p><p><strong>Review Workflow Evaluation Criteria</strong>:</p><ul><li>Ensure that the evaluation criteria are set correctly to trigger the workflow at the appropriate times (e.g., “created,” “created, and every time it’s edited”).</li></ul><h3>8. Salesforce IP Whitelisting Restrictions</h3><p>If your organization uses an email relay service or has IP whitelisting restrictions, ensure that Salesforce IP ranges are whitelisted to prevent email delivery issues.</p><p><strong>Check IP Whitelisting</strong>:</p><ul><li>Ensure that Salesforce IP ranges are whitelisted in your organization’s email server or relay service settings.</li></ul><h3>9. Governor Limits Exceeded</h3><p>Salesforce imposes governor limits on the number of emails that can be sent per day. If your org exceeds these limits, additional workflow email alerts will not be sent.</p><p><strong>Monitor Email Limits</strong>:</p><ul><li>Navigate to <strong>Setup</strong> &gt; <strong>Email Logs</strong> to check your current email usage against the daily limits.</li><li>Consider optimizing your email strategy to stay within the limits or upgrading your Salesforce plan.</li></ul><h3>10. Email Filters and Spam Settings</h3><p>Email filters and spam settings in the recipient’s email client can prevent workflow email alerts from being delivered or cause them to be marked as spam.</p><p><strong>Check Email Filters and Spam Settings</strong>:</p><ul><li>Instruct recipients to check their spam or junk folder if they did not receive the email.</li><li>Ask recipients to whitelist Salesforce email addresses in their email client settings.</li></ul><h3>Troubleshooting Steps</h3><h3>Step 1: Verify Email Deliverability Settings</h3><p>Ensure that email deliverability is set to allow outbound emails:</p><ul><li>Go to <strong>Setup</strong> &gt; <strong>Email</strong> &gt; <strong>Deliverability</strong>.</li><li>Set <strong>Access Level</strong> to <strong>“All Email”</strong>.</li></ul><h3>Step 2: Validate Email Addresses</h3><p>Ensure that all recipient email addresses are valid:</p><ul><li>Check for any typos, incorrect formatting, or inactive email addresses.</li><li>Ensure that all email addresses conform to the standard email format.</li></ul><h3>Step 3: Review Workflow Rule Criteria</h3><p>Ensure that the workflow rule criteria are correctly configured and that the record meets all the criteria.</p><ul><li>Review the workflow rule in <strong>Setup</strong> &gt; <strong>Process Automation</strong> &gt; <strong>Workflow Rules</strong>.</li><li>Double-check any filter logic, criteria, and conditions.</li></ul><h3>Step 4: Check Workflow Rule Status</h3><p>Ensure that the workflow rule associated with the email alert is active:</p><ul><li>Go to <strong>Setup</strong> &gt; <strong>Process Automation</strong> &gt; <strong>Workflow Rules</strong>.</li><li>Verify that the workflow rule is active and enabled.</li></ul><h3>Step 5: Verify Email Alert Configuration</h3><p>Check the email alert configuration to ensure it is set up correctly:</p><ul><li>Ensure that the correct email template is selected and active.</li><li>Verify that the recipient type and email addresses are correctly configured.</li></ul><h3>Step 6: Check User Permissions</h3><p>Ensure that the user triggering the workflow has the necessary permissions to send emails:</p><ul><li>Check the user’s profile and permission set for the <strong>“Send Email”</strong> permission.</li><li>Update the user’s permissions as needed.</li></ul><h3>Step 7: Review Workflow Evaluation Criteria</h3><p>Ensure that the workflow evaluation criteria are set correctly:</p><ul><li>Review the evaluation criteria to ensure they trigger the workflow at the appropriate times.</li></ul><h3>Step 8: Check IP Whitelisting</h3><p>Ensure that Salesforce IP ranges are whitelisted in your organization’s email server or relay service settings:</p><ul><li>Review your organization’s firewall or security settings.</li><li>Add or update Salesforce IP ranges as needed.</li></ul><h3>Step 9: Monitor Email Limits</h3><p>Monitor your Salesforce email usage to ensure that you are within the daily limits:</p><ul><li>Go to <strong>Setup</strong> &gt; <strong>Email Logs</strong> to view current usage.</li><li>Adjust your email strategy if you are nearing the limits or consider upgrading your Salesforce plan.</li></ul><h3>Step 10: Check Email Filters and Spam Settings</h3><p>Ensure that email alerts are not being blocked by spam filters or email settings:</p><ul><li>Instruct recipients to check their spam or junk folder.</li><li>Ask recipients to whitelist Salesforce email addresses in their email client settings.</li></ul><h3>FAQs</h3><p><strong>Q: How can I check if my email alerts are being sent correctly in Salesforce?</strong><br>A: You can check the status of your email alerts by reviewing the email logs in Salesforce. Navigate to <strong>Setup</strong> &gt; <strong>Email Logs</strong> to view a report of all outbound emails.</p><p><strong>Q: What should I do if my workflow email alerts are not working?</strong><br>A: Follow the troubleshooting steps outlined in this article to verify email deliverability settings, validate email addresses, review workflow criteria, check workflow status, and ensure proper permissions and access.</p><p><strong>Q: Can I use workflow email alerts with external email addresses?</strong><br>A: Yes, workflow email alerts can be sent to external email addresses as long as they are correctly formatted and accessible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da79f8437518" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>