Skip to content

Commit c07064b

Browse files
authored
Merge pull request #212 from AndrewCS149/testWorkflow
testWorkflow
2 parents fbbdd3f + a17c5c3 commit c07064b

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

client/src/api.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ use gloo::console::log;
22
use gloo_net::http::{Headers, Method, RequestBuilder, Response};
33
use wasm_bindgen::JsValue;
44

5-
// const URL: &str = "api/";
6-
const URL: &str = "https://localhost:32779/api/";
5+
const URL: &str = "https://devblog.net/api/";
76

87
#[derive(Clone, PartialEq)]
98
pub enum Api {

server/Program.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ public static void Main(string[] args)
2020

2121
var builder = WebApplication.CreateBuilder(args);
2222

23-
// --------------------- CORS POLICY ------------------------------
24-
builder.Services.AddCors(options =>
25-
{
26-
options.AddPolicy("AllowSpecificOrigin", b => b.WithOrigins("http://127.0.0.1:8080").AllowAnyHeader().AllowAnyMethod());
27-
});
28-
2923
// Add services to the container.
3024
builder.Services.AddSwaggerGen(c =>
3125
{

0 commit comments

Comments
 (0)